mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
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 <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a51bab6d42
commit
be546c6cd0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user