diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2015-04-26 08:28:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-25 19:22:03 +0300 |
commit | 706447861bb210cf2fb6a58bc1d29a6636175987 (patch) | |
tree | b81c71120e9589293608495d1236752d76209023 /drivers/block/drbd/drbd_req.c | |
parent | 5bded4effb601d9f92382db38fd501f98692eb2d (diff) | |
download | linux-706447861bb210cf2fb6a58bc1d29a6636175987.tar.xz |
drbd: fix memory leak in drbd_adm_resize
new_disk_conf could be leaked if the follow on checks fail,
so make sure to free it on error if it was not assigned yet.
Found with smatch.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
0 files changed, 0 insertions, 0 deletions