Search Linux Wireless

Re: [PATCH][MAC80211]: Do not free net device after it is unregistered.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Pavel Emelyanov <xemul@xxxxxxxxxx>
Date: Sun, 04 May 2008 10:53:45 +0400

> The error path in ieee80211_register_hw() may call the unregister_netdev()
> and right after it - the free_netdev(), which is wrong, since the
> unregister releases the device itself.
> 
> So the proposed fix is to NULL the local->mdev after unregister is done
> and check this before calling free_netdev().
> 
> I checked - no code uses the local->mdev after unregister in this error
> path (but even if some did this would be a BUG).
> 
> Signed-off-by: Pavel Emelyanov <xemul@xxxxxxxxxx>

I'll take this.

Applied, thanks Pavel.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux