staging: ozwpan: Check error condition before creating endpoint.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Thu, 22 Aug 2013 16:38:49 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 17:15:55 +0000 (10:15 -0700)
commitd236dc11a17e8fa29c1b4e0ecc8cf5b9bcc7fcf5
tree1e270d507a4070f8620bfafb6ca017046e733219
parent0a7bfbffbd9a94a31a4bac7e9ec29d18adc8e198
staging: ozwpan: Check error condition before creating endpoint.

Check if interface number is correct before creating an end point.

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