mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
commitdafa724bf5upstream. 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") Signed-off-by: tang.junhui <tang.junhui@zte.com.cn> Signed-off-by: Mike Snitzer <snitzer@redhat.com> [bwh: Backported to 3.16: adjuat context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
1681 lines
39 KiB
1681 lines
39 KiB