Skip to content
Snippets Groups Projects
Commit a40973ff authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

[media] igorplugusb: fix leaks in error path


Since rc_allocate_device() uses kmalloc, it can returns NULL,
so need to check,  otherwise, NULL derefenrece can happen.

Reported-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 050b6c98
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment