]> Git Repo - linux.git/commit
genl: Hold reference on correct module while netlink-dump.
authorPravin B Shelar <[email protected]>
Fri, 23 Aug 2013 19:45:04 +0000 (12:45 -0700)
committerDavid S. Miller <[email protected]>
Wed, 28 Aug 2013 21:19:17 +0000 (17:19 -0400)
commit33c6b1f6b154894321f5734e50c66621e9134e7e
treeb064251e8081c3dba7115b44ea6db15d240e1204
parent9b96309c5b0b9e466773c07a5bc8b7b68fcf010a
genl: Hold reference on correct module while netlink-dump.

netlink dump operations take module as parameter to hold
reference for entire netlink dump duration.
Currently it holds ref only on genl module which is not correct
when we use ops registered to genl from another module.
Following patch adds module pointer to genl_ops so that netlink
can hold ref count on it.

CC: Jesse Gross <[email protected]>
CC: Johannes Berg <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/net/genetlink.h
net/netlink/genetlink.c
This page took 0.045844 seconds and 4 git commands to generate.