[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)
commit7eb75715460026c82afd20e42ee51f4b30fe4bae
tree970d71f74f81c9d747abc5299450d168ec43931f
parent0528f354cfb98d8df32a76302ec07af1aa29dbd4
[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