linux-hardened/drivers/net/ethernet/emulex/benet
Kalesh AP 649886a36b be2net: protect eqo->affinity_mask from getting freed twice
There are paths in the driver such as an unrecoverable error (UE) detection
followed by a driver unload wherein be_clear() is invoked twice.
Individual data structures are reset so that they are not cleaned/freed
twice. This patch does the same for eqo->affinity_mask. It is freed only
if EQs haven't yet been destroyed. This fixes a possible crash when
affinity_mask is freed twice.

Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-07 11:53:06 -07:00
..
be.h be2net: Support for OS2BMC. 2015-05-14 12:21:42 -04:00
be_cmds.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-08 20:06:56 -07:00
be_cmds.h be2net: enable IFACE filters only after creating RXQs 2015-08-07 11:53:05 -07:00
be_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-08 20:06:56 -07:00
be_hw.h be2net: update copyright year to 2015 2015-05-09 16:27:04 -04:00
be_main.c be2net: protect eqo->affinity_mask from getting freed twice 2015-08-07 11:53:06 -07:00
be_roce.c be2net: update copyright year to 2015 2015-05-09 16:27:04 -04:00
be_roce.h be2net: update copyright year to 2015 2015-05-09 16:27:04 -04:00
Kconfig be2net: make hwmon interface optional 2015-05-19 16:40:04 -04:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00