commit | 48d5548fc5e5ad79ca98a287b67f403834929739 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Thu Jul 15 10:23:10 2010 +0200 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Jul 16 14:03:42 2010 -0400 |
tree | 728303cb63471478d6bb0c0a11ac62b6ed15ec69 | |
parent | 9171acc7e094b3ca88e624f39891a4f3bf9d083c [diff] |
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 <error27@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>