summaryrefslogtreecommitdiff
path: root/ipc/mq_sysctl.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-07-26 23:01:58 +0300
committerArnd Bergmann <arnd@arndb.de>2022-02-25 18:38:34 +0300
commit4036b29a146b2749af3bb213b003eb69f3e5ecc4 (patch)
treeef7e9da318c4d99a05a8483e08b6a1c197779926 /ipc/mq_sysctl.c
parent022e5220f2721d00610c0bf2926e8baa4e5fb4e2 (diff)
downloadlinux-4036b29a146b2749af3bb213b003eb69f3e5ecc4.tar.xz
ARM: mmp: Fix failure to remove sram device
Make sure in .probe() to set driver data before the function is left to make it possible in .remove() to undo the actions done. This fixes a potential memory leak and stops returning an error code in .remove() that is ignored by the driver core anyhow. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'ipc/mq_sysctl.c')
0 files changed, 0 insertions, 0 deletions