aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking/device_drivers/intel/i40e.rst
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-23 15:09:58 -0500
committerJens Axboe <axboe@kernel.dk>2019-11-21 11:33:41 -0700
commit03bf73c315edca28f47451913177e14cd040a216 (patch)
treebe6c1803a0475f2654db1dba73c30581d2a4a319 /Documentation/networking/device_drivers/intel/i40e.rst
parentMerge branch 'nvme-5.5' of git://git.infradead.org/nvme into for-5.5/drivers-post (diff)
downloadlinux-dev-03bf73c315edca28f47451913177e14cd040a216.tar.xz
linux-dev-03bf73c315edca28f47451913177e14cd040a216.zip
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>
Diffstat (limited to 'Documentation/networking/device_drivers/intel/i40e.rst')
0 files changed, 0 insertions, 0 deletions