mfd: pcf50633: Fix some memory leaks in the error handling path of 'pcf50633_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 14 Mar 2018 21:47:55 +0000 (22:47 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit52a3a374af06121d6f704d1ab4fe4eeb8a1678a1
tree331fe13d0ef35ff25c7467689840b50618b4f54f
parent59f4d741b15d45e68cdca63232ee8cd4224f2ccc
mfd: pcf50633: Fix some memory leaks in the error handling path of 'pcf50633_probe()'

If a 'platform_device_alloc()' call fails, we still need to release the
resources that have already been allocated before returning.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/pcf50633-core.c