From be546c6cd0a9ad742f1dc7869acdf2d80971ddb5 Mon Sep 17 00:00:00 2001 From: Haneen Mohammed Date: Sun, 22 Mar 2015 03:02:02 +0300 Subject: [PATCH] Staging: media: remove useless dev_info to avoid null ptr dereference Context is used in dev_info after it has been freed. This patch fix that issue by removing the dev_info itself, for msg doesn't look much necessary. Signed-off-by: Haneen Mohammed Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/lirc/lirc_sasem.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c index 0c9e08247d7f..9e5674341abe 100644 --- a/drivers/staging/media/lirc/lirc_sasem.c +++ b/drivers/staging/media/lirc/lirc_sasem.c @@ -170,10 +170,6 @@ static void delete_context(struct sasem_context *context) kfree(context->driver->rbuf); kfree(context->driver); kfree(context); - - if (debug) - dev_info(&context->dev->dev, "%s: context deleted\n", - __func__); } static void deregister_from_lirc(struct sasem_context *context) -- 2.30.2