From: Michael Chan Date: Thu, 23 Dec 2010 07:42:57 +0000 (+0000) Subject: cnic: Prevent "scheduling while atomic" when calling ->cnic_init() X-Git-Tag: v2.6.38-rc1~476^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8adc9240f98a816f7e9b3d93b9446a790110e062;p=pandora-kernel.git cnic: Prevent "scheduling while atomic" when calling ->cnic_init() cnic_dev_list is protected by rtnl_lock and cnic_dev_lock spin_lock during modifications. When looping on cnic_dev_list and calling ->cnic_init(), we should just hold rtnl_lock since ->cnic_init() may sleep. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed