e1000e: prevent null ptr dereference in e1000_tx_queue()
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 24 Nov 2010 07:42:43 +0000 (07:42 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 11 Dec 2010 06:13:41 +0000 (22:13 -0800)
commit36b973df713e1395b79896de667ad7dbb1925fa7
tree087d9cff2e4b786b9af7b62984294e05b0428e41
parent073287c037083497ebaaf75ead469b769f218615
e1000e: prevent null ptr dereference in e1000_tx_queue()

tx_desc can be dereferenced as a null pointer when count is passed in
as 0.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/e1000e/netdev.c