bio: Fix potential memory leak in bio_find_or_create_slab()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 9 Aug 2012 13:19:25 +0000 (15:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Aug 2012 13:19:25 +0000 (15:19 +0200)
Do not leak memory by updating pointer with potentially NULL realloc return value.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

No differences found