]> git.hungrycats.org Git - linux/commit
[PATCH] Sysfs not handling show errors
authorDave Jones <davej@codemonkey.org.uk>
Thu, 20 Mar 2003 13:55:34 +0000 (05:55 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 13:55:34 +0000 (05:55 -0800)
commit5141a806dff0897bb90bf0e9a706a4f0aa30e42f
tree8bb0d296658430b0db912d87dae5d8ca358d7772
parenta978d7792cefb17d1b222af2aeb0efe5ac506bcd
[PATCH] Sysfs not handling show errors

Originally by Rusty Lynch, munged by me, acked
by Mochel.

 Attempting to cat a sysfs file that returns an error will result in an
 endless dump of garbage to the screen because the result of the specific
 show operation was being saved to a size_t (unsigned) and then later
 checked for a negative value.
fs/sysfs/file.c