commit | a40973ff101ff8d3a42a8222e3119292f4191b07 | [log] [tgz] |
---|---|---|
author | Sean Young <sean@mess.org> | Fri Feb 19 12:33:53 2016 -0200 |
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Thu Mar 03 11:44:29 2016 -0300 |
tree | 3d62ade9a625a58fac5ddbd4fd4782e99a8c7840 | |
parent | 050b6c98b42ff77894da2aad34fcf0d4e1fed8e7 [diff] |
[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: Insu Yun <wuninsu@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>