kernel_optimize_test/kernel/time
Patrick Palka 891292a767 time: Fix signedness bug in sysfs_get_uname() and its callers
sysfs_get_uname() is erroneously declared as returning size_t even
though it may return a negative value, specifically -EINVAL.  Its
callers then check whether its return value is less than zero and indeed
that is never the case for size_t.

This patch changes sysfs_get_uname() to return ssize_t and makes sure
its callers use ssize_t accordingly.

Signed-off-by: Patrick Palka <patrick@parcs.ath.cx>
[jstultz: Didn't apply cleanly, as a similar partial fix was also applied
so had to resolve the collisions]
Signed-off-by: John Stultz <john.stultz@linaro.org>
2013-10-18 16:45:58 -07:00
..
alarmtimer.c alarmtimer: return EINVAL instead of ENOTSUPP if rtcdev doesn't exist 2013-10-18 16:23:58 -07:00
clockevents.c time: Fix signedness bug in sysfs_get_uname() and its callers 2013-10-18 16:45:58 -07:00
clocksource.c time: Fix signedness bug in sysfs_get_uname() and its callers 2013-10-18 16:45:58 -07:00
jiffies.c
Kconfig
Makefile
ntp_internal.h
ntp.c
posix-clock.c
sched_clock.c
tick-broadcast.c
tick-common.c
tick-internal.h time: Fix signedness bug in sysfs_get_uname() and its callers 2013-10-18 16:45:58 -07:00
tick-oneshot.c
tick-sched.c
timeconv.c
timekeeping_debug.c
timekeeping_internal.h
timekeeping.c timekeeping: Fix some trivial typos in comments 2013-10-18 16:30:17 -07:00
timer_list.c
timer_stats.c