Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
rtc: Staticize non-exported __rtc_set_alarm()
rtc: Fix ioctl error path return
ptp: Fix some locking bugs in ptp_read()
ptp: Return -EFAULT on copy_to_user() errors

+9 -7
+6 -5
drivers/ptp/ptp_chardev.c
··· 46 caps.n_ext_ts = ptp->info->n_ext_ts; 47 caps.n_per_out = ptp->info->n_per_out; 48 caps.pps = ptp->info->pps; 49 - err = copy_to_user((void __user *)arg, &caps, sizeof(caps)); 50 break; 51 52 case PTP_EXTTS_REQUEST: ··· 130 return -ERESTARTSYS; 131 } 132 133 - if (ptp->defunct) 134 return -ENODEV; 135 136 spin_lock_irqsave(&queue->lock, flags); 137 ··· 153 154 mutex_unlock(&ptp->tsevq_mux); 155 156 - if (copy_to_user(buf, event, cnt)) { 157 - mutex_unlock(&ptp->tsevq_mux); 158 return -EFAULT; 159 - } 160 161 return cnt; 162 }
··· 46 caps.n_ext_ts = ptp->info->n_ext_ts; 47 caps.n_per_out = ptp->info->n_per_out; 48 caps.pps = ptp->info->pps; 49 + if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) 50 + err = -EFAULT; 51 break; 52 53 case PTP_EXTTS_REQUEST: ··· 129 return -ERESTARTSYS; 130 } 131 132 + if (ptp->defunct) { 133 + mutex_unlock(&ptp->tsevq_mux); 134 return -ENODEV; 135 + } 136 137 spin_lock_irqsave(&queue->lock, flags); 138 ··· 150 151 mutex_unlock(&ptp->tsevq_mux); 152 153 + if (copy_to_user(buf, event, cnt)) 154 return -EFAULT; 155 156 return cnt; 157 }
+1 -1
drivers/rtc/interface.c
··· 318 } 319 EXPORT_SYMBOL_GPL(rtc_read_alarm); 320 321 - int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) 322 { 323 struct rtc_time tm; 324 long now, scheduled;
··· 318 } 319 EXPORT_SYMBOL_GPL(rtc_read_alarm); 320 321 + static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) 322 { 323 struct rtc_time tm; 324 long now, scheduled;
+2 -1
drivers/rtc/rtc-dev.c
··· 421 err = ops->ioctl(rtc->dev.parent, cmd, arg); 422 if (err == -ENOIOCTLCMD) 423 err = -ENOTTY; 424 - } 425 break; 426 } 427
··· 421 err = ops->ioctl(rtc->dev.parent, cmd, arg); 422 if (err == -ENOIOCTLCMD) 423 err = -ENOTTY; 424 + } else 425 + err = -ENOTTY; 426 break; 427 } 428