From: Michael Chan Date: Tue, 18 Mar 2014 03:19:06 +0000 (-0800) Subject: cnic: Use proper ulp_ops for per device operations. X-Git-Tag: v3.14-rc8~3^2~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7bd12d09ed6e4093a56dbbfbe8411cc52a738d1;p=pandora-kernel.git cnic: Use proper ulp_ops for per device operations. For per device operations, cnic needs to dereference the RCU protected cp->ulp_ops instead of the global cnic_ulp_tbl. In 2 locations, cnic_send_nlmsg() and cnic_copy_ulp_stats(), it was referencing the global table. If the device has been unregistered and these functions are still being called (very unlikely scenarios), it could lead to NULL pointer dereference. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed