From: Patrick Palka Date: Fri, 11 Oct 2013 17:11:55 +0000 (-0400) Subject: time: Fix signedness bug in sysfs_get_uname() and its callers X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~39^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=891292a767c2453af0e5be9465e95b06b4b29ebe;p=pandora-kernel.git 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 [jstultz: Didn't apply cleanly, as a similar partial fix was also applied so had to resolve the collisions] Signed-off-by: John Stultz --- Reading git-diff-tree failed