Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb166e0 authored by Andreas Pretzsch's avatar Andreas Pretzsch Committed by Samuel Ortiz
Browse files

mfd: Use devm_* APIs for mc13xxx: remove leftover kfree



commit e7c706b1 migrated the allocation
of struct mc13xxx to devm_* functions, but left a kfree(mc13xxx) in the
mc13xxx_common_init error path. Remove it to prevent memory corruption.

Signed-off-by: default avatarAndreas Pretzsch <apr@cn-eng.de>
Reviewed-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 48942222
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -676,7 +676,6 @@ int mc13xxx_common_init(struct mc13xxx *mc13xxx,
err_mask:
err_revision:
		mc13xxx_unlock(mc13xxx);
		kfree(mc13xxx);
		return ret;
	}