diff options
author | Uwe Kleine-König <[email protected]> | 2021-07-26 22:01:58 +0200 |
---|---|---|
committer | Arnd Bergmann <[email protected]> | 2022-02-25 16:38:34 +0100 |
commit | 4036b29a146b2749af3bb213b003eb69f3e5ecc4 (patch) | |
tree | ef7e9da318c4d99a05a8483e08b6a1c197779926 /net/lapb/lapb_subr.c | |
parent | 022e5220f2721d00610c0bf2926e8baa4e5fb4e2 (diff) |
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 <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions