]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: fix problems with binary files
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 20 Jan 2009 23:51:16 +0000 (15:51 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jan 2009 04:52:09 +0000 (20:52 -0800)
commit2f93b4509c8203597b01c4bc149f4748717cfb51
treeb92d71b333e30f90b4a91a4e4bea895f5489a6ae
parente2d557182b966b71b8e4d108ebb3bb7cc4227b8a
sysfs: fix problems with binary files

Some sysfs binary files don't like having 0 passed to them as a size.
Fix this up at the root by just returning to the vfs if userspace asks
us for a zero sized buffer.

Thanks to Pavel Roskin for pointing this out.

Reported-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/bin.c