From: Eric Dumazet Date: Mon, 4 Oct 2010 22:42:08 +0000 (+0000) Subject: caif: fix two caif_connect() bugs X-Git-Tag: v2.6.36-rc8~17^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79315068f4560f3f7bd6e9790190dcb43059770c;p=pandora-kernel.git caif: fix two caif_connect() bugs caif_connect() might dereference a netdevice after dev_put() it. It also doesnt check dev_get_by_index() return value and could dereference a NULL pointer. Fix it, using RCU to avoid taking a reference. Signed-off-by: Eric Dumazet CC: Sjur Braendeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed