From: KAMEZAWA Hiroyuki Date: Fri, 1 Oct 2010 21:20:22 +0000 (-0700) Subject: vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos X-Git-Tag: v2.6.37-rc1~94^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a3956c790290efeb647bbb0c3a90476bb57800e;p=pandora-kernel.git vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos Now, rw_verify_area() checsk f_pos is negative or not. And if negative, returns -EINVAL. But, some special files as /dev/(k)mem and /proc//mem etc.. has negative offsets. And we can't do any access via read/write to the file(device). So introduce FMODE_UNSIGNED_OFFSET to allow negative file offsets. Signed-off-by: Wu Fengguang Signed-off-by: KAMEZAWA Hiroyuki Cc: Al Viro Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- Reading git-diff-tree failed