Skip to content

Commit

Permalink
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/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
  • Loading branch information
torvalds committed Sep 17, 2019
2 parents ad06219 + f18ddc1 commit 16208cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/time/alarmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static int alarm_timer_create(struct k_itimer *new_timer)
enum alarmtimer_type type;

if (!alarmtimer_get_rtcdev())
return -ENOTSUPP;
return -EOPNOTSUPP;

if (!capable(CAP_WAKE_ALARM))
return -EPERM;
Expand Down Expand Up @@ -790,7 +790,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
int ret = 0;

if (!alarmtimer_get_rtcdev())
return -ENOTSUPP;
return -EOPNOTSUPP;

if (flags & ~TIMER_ABSTIME)
return -EINVAL;
Expand Down

0 comments on commit 16208cd

Please sign in to comment.