From: Csaba Henk Date: Mon, 29 Jun 2009 01:26:53 +0000 (+0200) Subject: fuse: fix return value of fuse_dev_write() X-Git-Tag: v2.6.31-rc2~20^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4c458b3a23d76936e76678f2074b1528f129f7a;p=pandora-kernel.git fuse: fix return value of fuse_dev_write() On 64 bit systems -- where sizeof(ssize_t) > sizeof(int) -- the following test exposes a bug due to a non-careful return of an int or unsigned value: implement a FUSE filesystem which sends an unsolicited notification to the kernel with invalid opcode. The respective write to /dev/fuse will return (1 << 32) - EINVAL with errno == 0 instead of -1 with errno == EINVAL. Signed-off-by: Miklos Szeredi CC: stable@kernel.org --- Reading git-diff-tree failed