summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_req.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2015-04-26 08:28:43 +0300
committerJens Axboe <axboe@fb.com>2015-11-25 19:22:03 +0300
commit706447861bb210cf2fb6a58bc1d29a6636175987 (patch)
treeb81c71120e9589293608495d1236752d76209023 /drivers/block/drbd/drbd_req.c
parent5bded4effb601d9f92382db38fd501f98692eb2d (diff)
downloadlinux-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