Jens Axboe 991721572e [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 <damien@sdl.hitachi.co.jp>

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-17 10:52:12 -07:00
..
2006-05-15 11:20:56 -07:00
2006-06-08 15:14:24 -07:00
2006-03-31 12:18:51 -08:00
2006-05-15 11:20:58 -07:00
2006-04-19 12:43:47 -04:00
2006-03-31 12:18:55 -08:00
2006-04-19 09:13:51 -07:00
2006-04-22 09:19:53 -07:00
2006-04-02 13:39:21 +02:00
2006-04-02 13:40:13 +02:00
2006-03-31 12:18:55 -08:00
2006-04-02 13:36:13 +02:00
2006-04-02 13:37:19 +02:00
2006-04-11 13:53:33 +02:00
2006-04-02 13:38:18 +02:00
2006-03-28 09:16:08 -08:00
2006-05-15 11:20:54 -07:00
2006-04-28 21:04:59 +10:00