From: Dan Carpenter Date: Thu, 19 Aug 2010 08:52:44 +0000 (+0000) Subject: qlge: pull NULL check ahead of dereference X-Git-Tag: v2.6.37-rc1~147^2~738 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4da79504b2b41410dd56e9268c9ad403aa65e89c;p=pandora-kernel.git qlge: pull NULL check ahead of dereference There was a dereference before NULL check issue introduced in 1e213303d "qlge: Add tx multiqueue support." I've pulled the NULL check of "net_rsp" forward a couple lines to avoid that. Also Ron Mercer says that the early exit should be above the index write. ql_write_cq_idx(rx_ring); Signed-off-by: Dan Carpenter Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- Reading git-diff-tree failed