From: Hiroaki SHIMODA Date: Wed, 12 Nov 2014 19:24:10 +0000 (+0900) Subject: netlink: Properly unbind in error conditions. X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~119^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6251edd932ce3faadbfe27b0a0fe79780e0972e9;p=pandora-kernel.git netlink: Properly unbind in error conditions. Even if netlink_kernel_cfg::unbind is implemented the unbind() method is not called, because cfg->unbind is omitted in __netlink_kernel_create(). And fix wrong argument of test_bit() and off by one problem. At this point, no unbind() method is implemented, so there is no real issue. Fixes: 4f520900522f ("netlink: have netlink per-protocol bind function return an error code.") Signed-off-by: Hiroaki SHIMODA Cc: Richard Guy Briggs Acked-by: Richard Guy Briggs Signed-off-by: David S. Miller --- Reading git-diff-tree failed