Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be546c6c authored by Haneen Mohammed's avatar Haneen Mohammed Committed by Greg Kroah-Hartman
Browse files

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: default avatarHaneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a51bab6d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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)