]> git.neil.brown.name Git - history.git/commit
[PATCH] sysfs error handling fix
authorAndrew Morton <akpm@digeo.com>
Thu, 13 Feb 2003 01:39:58 +0000 (17:39 -0800)
committerVojtech Pavlik <vojtech@kernel.bkbits.net>
Thu, 13 Feb 2003 01:39:58 +0000 (17:39 -0800)
commit93488c9b7daf38abf6b9cc821c90b25a0c863d4f
tree67eed8c5a7726333f61fa6b5b1e8c3724b5cc59c
parent9cebd026393eb22742ce23cc5fe3d039eeadb6fe
[PATCH] sysfs error handling fix

Patch from: Rusty Lynch <rusty@linux.co.intel.com>

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.

Here is a trivial patch to fix the error.
fs/sysfs/inode.c