staging: cx25821: avoid NULL pointer dereference
authorAlexander Beregalov <a.beregalov@gmail.com>
Thu, 7 Jan 2010 00:21:48 +0000 (03:21 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:40 +0000 (16:42 -0800)
commitc424d46fdc79df201707fe815aa8480751918025
treec698e83ef6bf9eea31d095eafb3f561cd8392e3f
parent267c39c918cd0c239148a281d51693f47d2e1e54
staging: cx25821: avoid NULL pointer dereference

Assign dev only if fh is not NULL.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/cx25821/cx25821-audups11.c
drivers/staging/cx25821/cx25821-video.c