[dm-devel] dm: Fix possible NULL dereferences

Mike Snitzer snitzer at redhat.com
Tue Nov 2 16:16:34 UTC 2010


On Sun, Sep 19 2010 at  8:01pm -0400,
Michał Mirosław <mirq-linux at rere.qmqm.pl> wrote:

> bio_alloc_bioset() might return NULL. Or maybe passed
> bio_sets are guaranteed to have enough free bios?

The passed bio_set is allocated in dm_alloc_md_mempools() using
bioset_create() -- so it does have allocation guarantees.

Mike




More information about the dm-devel mailing list