From: Jens Axboe Date: Fri, 16 Jun 2006 11:02:29 +0000 (+0200) Subject: [PATCH] Fix missing ret assignment in __bio_map_user() error path X-Git-Tag: v2.6.17~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=991721572ef2140c6411894aebefd3377e71a9e7;p=pandora-kernel.git [PATCH] Fix missing ret assignment in __bio_map_user() error path If get_user_pages() returns less pages than what we asked for, we jump to out_unmap which will return ERR_PTR(ret). But ret can contain a positive number just smaller than local_nr_pages, so be sure to set it to -EFAULT always. Problem found and diagnosed by Damien Le Moal Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed