diff options
author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-18 19:18:34 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-08-21 11:47:05 -0400 |
commit | dc1a3e8e0cc6b2293b48c044710e63395aeb4fb4 (patch) | |
tree | 1b1bcd524944340fb94f35354956f0334dd38a6d /drivers/gpio/gpio-rdc321x.c | |
parent | e0702d90b79d430b0ccc276ead4f88440bb51352 (diff) | |
download | linux-dc1a3e8e0cc6b2293b48c044710e63395aeb4fb4.tar.bz2 |
dm raid: add missing cleanup in raid_ctr()
If rs_prepare_reshape() fails, no cleanup is executed, leading to
leak of the raid_set structure allocated at the beginning of
raid_ctr(). To fix this issue, go to the label 'bad' if the error
occurs.
Fixes: 11e4723206683 ("dm raid: stop keeping raid set frozen altogether")
Cc: stable@vger.kernel.org
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/gpio/gpio-rdc321x.c')
0 files changed, 0 insertions, 0 deletions