]> Git Repo - linux.git/commit
ixgbe: Fix use after free on module remove
authorAlexander Duyck <[email protected]>
Wed, 2 May 2012 21:19:14 +0000 (21:19 +0000)
committerDavid S. Miller <[email protected]>
Thu, 3 May 2012 08:21:34 +0000 (04:21 -0400)
commitaf94bf6db1d58d26f1cdab145b6312ad363254a6
tree22956415d73eefa633459df52b554bc8fdffa289
parent34a802a5b9c4c4efb61828781230805be6dd0f8e
ixgbe: Fix use after free on module remove

While testing the TCP changes I had to fix an issue in order to be able to
load and unload the module.

The recent patch that added thermal sensor support added a use after free
bug on module unload with an 82598 adapter in the system.  To resolve the
issue I have updated the code so that when we free the info_kobj we set it
back to NULL.

I suspect there are likely other bugs present, but I will leave that for
another patch that can undergo more testing.

I am submitting this directly to net-next since this fixes a fairly serious
bug that will lock up the ixgbe module until the system is rebooted.

Signed-off-by: Alexander Duyck <[email protected]>
Cc: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
This page took 0.052986 seconds and 4 git commands to generate.