Commit 38141fcf authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

ar5523: make buffer size variable unsigned

A negative buffer size doesn't make sense and it breaks this check in
ar5523_get_max_rxsz():

	if (!ar->rxbufsz || ar->rxbufsz > AR5523_SANE_RXBUFSZ) { ...
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent da17fcff
......@@ -122,7 +122,7 @@ struct ar5523 {
struct work_struct rx_refill_work;
int rxbufsz;
unsigned int rxbufsz;
u8 serial[16];
struct ieee80211_channel channels[14];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment