* [patch] ar5523: make buffer size variable unsigned
@ 2012-10-30 18:04 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-10-30 18:04 UTC (permalink / raw)
To: Pontus Fuchs; +Cc: John W. Linville, linux-wireless, kernel-janitors
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>
diff --git a/drivers/net/wireless/ath/ar5523/ar5523.h b/drivers/net/wireless/ath/ar5523/ar5523.h
index 6086ba3..00c6fd3 100644
--- a/drivers/net/wireless/ath/ar5523/ar5523.h
+++ b/drivers/net/wireless/ath/ar5523/ar5523.h
@@ -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];
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-30 18:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 18:04 [patch] ar5523: make buffer size variable unsigned Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox