From: Inaky Perez-Gonzalez Date: Tue, 31 Mar 2009 00:50:17 +0000 (-0700) Subject: wimax: fix oops if netlink fails to add attribute X-Git-Tag: linux-omap-v2.6.30-rc6~48^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a2627a29667fe7c4a9d06e1579a2d65bd39bba;p=pandora-kernel.git wimax: fix oops if netlink fails to add attribute When sending a message to user space using wimax_msg(), if nla_put() fails, correctly interpret the return code from wimax_msg_alloc() as an err ptr and return the error code instead of crashing (as it is assuming than non-NULL means the pointer is ok). Signed-off-by: Inaky Perez-Gonzalez --- Reading git-diff-tree failed