aboutsummaryrefslogtreecommitdiffstats
path: root/core.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-08-31 17:40:44 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:30 +1100
commitbde87475ff7d229619eb090af58c7e496bd3fa60 (patch)
treed20dce8773c4c0453636f00f98462b5e99e88601 /core.c
parent993a6fb52ee4a39775b7e14394650213f18913f2 (diff)
Add additional NULL checks
Check for NULL pointers before free'ing memory on cleanup of AVIRT Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.c')
-rw-r--r--core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/core.c b/core.c
index bf31f0b..996a452 100644
--- a/core.c
+++ b/core.c
@@ -151,9 +151,8 @@ static int avirt_probe(struct platform_device *devptr)
*/
static int avirt_remove(struct platform_device *devptr)
{
- avirt_alsa_deregister();
-
- return 0;
+ DPRINTK();
+ return avirt_alsa_deregister();
}
static struct platform_driver avirt_driver = {