Make ath_hal_eepromDetach() safer
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 8 Apr 2009 22:25:50 +0000 (22:25 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 8 Apr 2009 22:25:50 +0000 (22:25 +0000)
commitec2664e900b47a2381b5f04bf6b4e27b5af156b8
treecfedfab90d3a8d1dc493c0d6d3ab8ad7a2736e8b
parent519d1b2a2e815368c57943063ded4f147c37e069
Make ath_hal_eepromDetach() safer

Check that AH_PRIVATE(_ah)->ah_eepromDetach is not NULL before calling
it.  This fixes kernel oops in case if the attach function for the chip
fails before EEPROM support initialization and calls the corresponding
detach function.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3991 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath_hal/ah_internal.h