[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] dm: Fix possible NULL dereferences



On Sun, Sep 19 2010 at  8:01pm -0400,
Michał Mirosław <mirq-linux 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]