aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAdam Ludkiewicz <adam.ludkiewicz@intel.com>2019-04-24 05:20:53 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-06-14 13:03:27 -0700
commitfefa9cfddf29a7c76ab052d13c2ef7170d9d6511 (patch)
tree7634b15074130761e1b45e82e3119563f5b4206e /net/lapb/lapb_iface.c
parentc1041d07043748460f215386b760f3943f6890bb (diff)
downloadlinux-fefa9cfddf29a7c76ab052d13c2ef7170d9d6511.tar.gz
linux-fefa9cfddf29a7c76ab052d13c2ef7170d9d6511.tar.bz2
linux-fefa9cfddf29a7c76ab052d13c2ef7170d9d6511.zip
i40e: Check if the BAR size is large enough before writing to registers
This patch fixes the problem with a kernel panic occurring when trying to bind the i40e driver to a non-i40e port. The problem is fixed by checking if the BAR size in the device is large enough by reading the highest register. Signed-off-by: Adam Ludkiewicz <adam.ludkiewicz@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions