From: Hugh Dickins Date: Fri, 2 Dec 2005 15:58:09 +0000 (+0000) Subject: [SCSI] sg: fix a bug in st_map_user_pages failure path X-Git-Tag: v2.6.15-rc5~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5cda069b3f0a3bbc18576bc15903ed665d0295;p=pandora-kernel.git [SCSI] sg: fix a bug in st_map_user_pages failure path sg's st_map_user_pages is modelled on an earlier version of st's sgl_map_user_pages, and has the same bug: if get_user_pages got some but not all of the pages, then those got were released, but the positive res code returned implied that they were still to be freed. Signed-off-by: Hugh Dickins Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed