wimax: fix oops if netlink fails to add attribute
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Tue, 31 Mar 2009 00:50:17 +0000 (17:50 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Wed, 6 May 2009 20:48:36 +0000 (13:48 -0700)
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 <inaky@linux.intel.com>

No differences found