]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc/redrat3: dereferencing null pointer
authorDan Carpenter <error27@gmail.com>
Thu, 26 May 2011 08:55:08 +0000 (05:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:24 +0000 (17:52 -0300)
commitfffce60757346d73cba85555b94ed05dffb0a7a6
tree970d71f74f81c9d747abc5299450d168ec43931f
parent504e0c1608bcfbcb335b61e38d7346be1ca959ad
[media] rc/redrat3: dereferencing null pointer

In the original code, if the allocation failed we dereference "rr3"
when it was NULL.

Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/redrat3.c