From: Johannes Berg Date: Mon, 22 Dec 2014 17:56:38 +0000 (+0100) Subject: netlink: call unbind when releasing socket X-Git-Tag: fixes-v4.0-rc1~357^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d68536bed72b09de03b07479dd707c5831b3b94;p=pandora-kernel.git netlink: call unbind when releasing socket Currently, netlink_unbind() is only called when the socket explicitly unbinds, which limits its usefulness (luckily there are no users of it yet anyway.) Call netlink_unbind() also when a socket is released, so it becomes possible to track listeners with this callback and without also implementing a netlink notifier (and checking netlink_has_listeners() in there.) Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- Reading git-diff-tree failed