From: Stefan Schmidt Date: Mon, 26 Apr 2010 18:20:32 +0000 (-0700) Subject: ieee802154: Fix oops during ieee802154_sock_ioctl X-Git-Tag: v2.6.34-rc6~13^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c0c8b4a5a174645550d444bd5c3ff0cccf74cb;p=pandora-kernel.git ieee802154: Fix oops during ieee802154_sock_ioctl Trying to run izlisten (from lowpan-tools tests) on a device that does not exists I got the oops below. The problem is that we are using get_dev_by_name without checking if we really get a device back. We don't in this case and writing to dev->type generates this oops. [Oops code removed by Dmitry Eremin-Solenikov] If possible this patch should be applied to the current -rc fixes branch. Signed-off-by: Stefan Schmidt Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: David S. Miller --- Reading git-diff-tree failed