From: Haneen Mohammed Date: Sun, 22 Mar 2015 00:02:02 +0000 (+0300) Subject: Staging: media: remove useless dev_info to avoid null ptr dereference X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be546c6cd0a9ad742f1dc7869acdf2d80971ddb5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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)