[media] Prevent null pointer derefernce of pdev
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Mon, 9 May 2011 10:32:24 +0000 (07:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 22:55:57 +0000 (19:55 -0300)
commitcecc2471ea719a359b253449781a584e319d8909
tree08a9f436d7433c5920a26927fb9f3ede688fe4d9
parentbbe880b4a7c66ba14b67ee7acfbaaaa1c7be2d03
[media] Prevent null pointer derefernce of pdev

Make sure pdev is not dereferenced when it is null

Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-if.c