summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2017-05-30 03:19:46 +0300
committerDoug Ledford <dledford@redhat.com>2017-06-27 23:58:12 +0300
commit52d86e72c515ebd4fb0d329470aa50698e28fb36 (patch)
tree1ae858e80803f73349e9688197c0530a5ef661da /drivers/vfio
parent6c31e5283cb06b81a13cc88da2f2ad3db594a935 (diff)
downloadlinux-52d86e72c515ebd4fb0d329470aa50698e28fb36.tar.xz
IB/hfi1: Remove subtraction of uninitialized value
In process_receive_packet the packet header field is used to calculate the length of the packet. However this is not necessarily setup. In fact only if the ECN prescan is enabled will the packet header be valid at this point. The code works as is because we do not do anything with the packet length at this point in the packet processing. The length and header are setup correctly in hfi1_setup_ib_header which is called by the following sequence: process_receive_packet() -> rhf_receieve_function_map[]() --> process_receive_ib() ---> hfi1_setup_9B_packet() ----> hfi1_setup_ib_header() Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions