提交 38141fcf 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册