Files
i2som-imx-linux/drivers/block
Navid Emamdoost 344966da99 nbd: prevent memory leak
commit 03bf73c315 upstream.

In nbd_add_socket when krealloc succeeds, if nsock's allocation fail the
reallocted memory is leak. The correct behaviour should be assigning the
reallocted memory to config->socks right after success.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-01 09:17:38 +01:00
..
2019-09-06 10:21:57 +02:00
2019-09-21 07:17:14 +02:00
2019-12-01 09:17:38 +01:00
2019-12-01 09:16:20 +01:00
2018-11-13 11:08:20 -08:00