tag | 17405e840f429c424b9a01a8066c0bba1b2c02a0 | |
---|---|---|
tagger | Jens Axboe <axboe@kernel.dk> | Fri Nov 22 08:33:08 2019 -0700 |
object | 03bf73c315edca28f47451913177e14cd040a216 |
for-5.5/drivers-post-20191122
commit | 03bf73c315edca28f47451913177e14cd040a216 | [log] [tgz] |
---|---|---|
author | Navid Emamdoost <navid.emamdoost@gmail.com> | Mon Sep 23 15:09:58 2019 -0500 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Nov 21 11:33:41 2019 -0700 |
tree | be6c1803a0475f2654db1dba73c30581d2a4a319 | |
parent | 866ca95da5e5c4fad59f1b08254168284bd6a911 [diff] |
nbd: prevent memory leak 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>