From: Ben Hutchings Date: Tue, 2 Oct 2012 00:43:45 +0000 (+0100) Subject: sfc: Fix null function pointer in efx_sriov_channel_type X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=726ba0e14a7915effee9e8e652a37306d9637d13;p=pandora-kernel.git sfc: Fix null function pointer in efx_sriov_channel_type Commit c31e5f9 ('sfc: Add channel specific receive_skb handler and post_remove callback') added the function pointer field efx_channel_type::post_remove and an unconditional call through it. This field should have been initialised to efx_channel_dummy_op_void in the existing instances of efx_channel_type, but this was only done in efx_default_channel_type. Consequently, if a device has SR-IOV enabled then removing the driver or device will result in an oops. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed