staging: ozwpan: Fix error checking while transmitting frame.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Fri, 23 Aug 2013 17:33:32 +0000 (18:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:27:43 +0000 (06:27 -0700)
commit37bc8f7856fc0c851980f01174ca936741511523
tree6d5942044d11d534e230a9e8eb9581111b0bde66
parent4882ad9561d2a719ac9fb269bf0567141fd9892e
staging: ozwpan: Fix error checking while transmitting frame.

Make sure that we return negative value if oz_build_frame()
returns NULL.

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozpd.c