Skip to content

Commit 16208cd

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Gleixner: "A single fix to prevent the alarm timer code from returning ENOTSUPP to user space. ENOTSUPP is a purely kernel internal error code related to NFSv3 and should never be handed back to user space. The risk for ABI breakage is low as the number of systems which do not have a working RTC is very limited" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP
2 parents ad06219 + f18ddc1 commit 16208cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/time/alarmtimer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static int alarm_timer_create(struct k_itimer *new_timer)
672672
enum alarmtimer_type type;
673673

674674
if (!alarmtimer_get_rtcdev())
675-
return -ENOTSUPP;
675+
return -EOPNOTSUPP;
676676

677677
if (!capable(CAP_WAKE_ALARM))
678678
return -EPERM;
@@ -790,7 +790,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
790790
int ret = 0;
791791

792792
if (!alarmtimer_get_rtcdev())
793-
return -ENOTSUPP;
793+
return -EOPNOTSUPP;
794794

795795
if (flags & ~TIMER_ABSTIME)
796796
return -EINVAL;

0 commit comments

Comments
 (0)