]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm io: fix another panic on large request
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Thu, 12 Jul 2007 16:27:45 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:42 +0000 (14:27 -0700)
commit3bca2f557175e72b20f76d7489695f4c76ca0bf4
tree75c079f2df9dad2d306e7a7378c3dea7b70d4980
parent74ff092c258313747791da5d82054027167d1a79
dm io: fix another panic on large request

bio_alloc_bioset() will return NULL if 'num_vecs' is too large.
Use bio_get_nr_vecs() to get estimation of maximum number.

Signed-off-by: Junichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-io.c