From: Douglas Gilbert Date: Thu, 1 Sep 2005 11:50:02 +0000 (+1000) Subject: [SCSI] sg direct io/mmap oops, st sync X-Git-Tag: v2.6.14-rc1~522^2^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb92b7ee98e8e580cafaa63bd1edbe6646877bc;p=pandora-kernel.git [SCSI] sg direct io/mmap oops, st sync This patch adopts the same solution as proposed by Kai M. in a post titled: "[PATCH] SCSI tape signed/unsigned fix". The fix is in a function that the sg driver borrowed from the st driver so its maintenance is a little easier if the functions remain the same after the fix. - change nr_pages type from unsigned to signed so errors from get_user_pages() call are properly handled Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed