summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-rq.c
diff options
context:
space:
mode:
authortang.junhui2016-10-21 03:35:32 +0200
committerMike Snitzer2016-10-24 17:17:46 +0200
commitdafa724bf582181d9a7d54f5cb4ca0bf8ef29269 (patch)
tree952048cd64778adb6b20056b57912f19ca1eb6a1 /drivers/md/dm-rq.c
parentdm rq: clear kworker_task if kthread_run() returned an error (diff)
downloadkernel-qcow2-linux-dafa724bf582181d9a7d54f5cb4ca0bf8ef29269.tar.gz
kernel-qcow2-linux-dafa724bf582181d9a7d54f5cb4ca0bf8ef29269.tar.xz
kernel-qcow2-linux-dafa724bf582181d9a7d54f5cb4ca0bf8ef29269.zip
dm table: fix missing dm_put_target_type() in dm_table_add_target()
dm_get_target_type() was previously called so any error returned from dm_table_add_target() must first call dm_put_target_type(). Otherwise the DM target module's reference count will leak and the associated kernel module will be unable to be removed. Also, leverage the fact that r is already -EINVAL and remove an extra newline. Fixes: 36a0456 ("dm table: add immutable feature") Fixes: cc6cbe1 ("dm table: add always writeable feature") Fixes: 3791e2f ("dm table: add singleton feature") Cc: stable@vger.kernel.org # 3.2+ Signed-off-by: tang.junhui <tang.junhui@zte.com.cn> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-rq.c')
0 files changed, 0 insertions, 0 deletions