From: Tejun Heo Date: Wed, 13 Jun 2007 18:45:13 +0000 (+0900) Subject: sysfs: fix error handling in binattr write() X-Git-Tag: v2.6.23-rc1~1107^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e3cd8270d036953120eca83610f95d3f7374c6;p=pandora-kernel.git sysfs: fix error handling in binattr write() Error handling in fs/sysfs/bin.c:write() was wrong because size_t count is used to receive return value from flush_write() which is negative on failure. This patch updates write() such that int variable is used instead. read() is updated the same way for consistency. Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed