aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-08-20 15:38:13 +0000
committerBartosz Golaszewski <[email protected]>2021-08-31 10:10:24 +0000
commit889a1b3f35db6ba5ba6a0c23a3a55594570b6a17 (patch)
tree779cf1fe8e802cba1a3e796ac65f1abe34ff469f /net/unix/af_unix.c
parentgpio: mpc8xxx: Fix a potential double iounmap call in 'mpc8xxx_probe()' (diff)
downloadkernel-889a1b3f35db6ba5ba6a0c23a3a55594570b6a17.tar.gz
kernel-889a1b3f35db6ba5ba6a0c23a3a55594570b6a17.zip
gpio: mpc8xxx: Use 'devm_gpiochip_add_data()' to simplify the code and avoid a leak
If an error occurs after a 'gpiochip_add_data()' call it must be undone by a corresponding 'gpiochip_remove()' as already done in the remove function. To simplify the code a fix a leak in the error handling path of the probe, use the managed version instead (i.e. 'devm_gpiochip_add_data()') Fixes: 698b8eeaed72 ("gpio/mpc8xxx: change irq handler from chained to normal") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions