Skip to content

Commit

Permalink
ar5523: make buffer size variable unsigned
Browse files Browse the repository at this point in the history
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Oct 30, 2012
1 parent da17fcf commit 38141fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ar5523/ar5523.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 38141fc

Please sign in to comment.