commit | effcc625eb4ab3b10b4744237fd37e8f7dcd6511 | [log] [tgz] |
---|---|---|
author | Amitkumar Karwar <akarwar@marvell.com> | Wed Mar 28 11:38:01 2012 -0700 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Apr 13 14:05:35 2012 -0400 |
tree | 903cc745e214fbe36d4c244360e354cdfa7b0a8f | |
parent | b4838d12e1f3cb48c2489a0b08733b5dbf848297 [diff] |
libertas: fix signedness bug in lbs_auth_to_authtype() Return type for lbs_auth_to_authtype() is changed from "u8" to "int" to return negative error code correctly. Also an error check is added in connect handler for invalid auth type. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>