IB/hfi1: Fix ECN processing in prescan_rxq
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Tue, 25 Oct 2016 20:12:23 +0000 (13:12 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:16:46 +0000 (16:16 -0500)
commitf2d8a0b367e735ab157222ce74a5f2481216c878
tree6c5ddd69f786cdf672944fe175dced45e2e6486e
parent505efe3e46d5eaab726295cd023fb86d5b789d00
IB/hfi1: Fix ECN processing in prescan_rxq

When processing ECN via the prescan_rxq path, some fields in the packet
structure are passed uninitialized. This can potentially
cause NULL pointer exceptions during ECN handling.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/driver.c