From: Dan Carpenter Date: Thu, 15 Jul 2010 08:23:10 +0000 (+0200) Subject: orinoco_usb: potential null dereference X-Git-Tag: v2.6.36-rc1~571^2~107^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d5548fc5e5ad79ca98a287b67f403834929739;p=pandora-kernel.git orinoco_usb: potential null dereference Smatch complains that "upriv->read_urb" gets dereferenced before checking for NULL. It turns out that it's possible for "upriv->read_urb" to be NULL so I added checks around the dereferences. Also I remove an "if (upriv->bap_buf != NULL)" check because "kfree(NULL) is OK. Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville --- Reading git-diff-tree failed