Project

General

Profile

Actions

Feature #3327

open

138: NAPI context resource leaks - netif_napi_del and netif_napi_add

Added by Alexey Khoroshilov over 12 years ago. Updated about 10 years ago.

Status:
Open
Priority:
Normal
Start date:
08/07/2012
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

commit ad1be8d345416a794dea39761a374032aa471a76 upstream.

when register_netdev fails, the init'ed NAPIs by netif_napi_add must be
deleted with netif_napi_del, and also when driver unloads, it should
delete the NAPI before unregistering netdevice using unregister_netdev.

http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=fc6fc50e4d74eb0f4f4c8a07b33d2a797a29082f

Also it can be checked that
'netif_napi_add() must be used to initialize a napi context prior to calling any of the other napi related functions'.

Actions

Also available in: Atom PDF