wil6210: fix buffer overflow in wil_txdesc_debugfs_show()
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Sun, 2 Mar 2014 09:20:50 +0000 (11:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Mar 2014 20:35:56 +0000 (15:35 -0500)
commitaf31cb5a57084146aae5c01df6b85f54067528aa
treec797949b4b24e2af50a5d54ccbc9c0400c70a575
parent7661e97542d57d54317407ff4790e2d6d94a0852
wil6210: fix buffer overflow in wil_txdesc_debugfs_show()

Wrong index comparison logic, found by smatch:

drivers/net/wireless/ath/wil6210/debugfs.c:402 wil_txdesc_debugfs_show() warn: buffer overflow 'wil->vring_tx' 24 <= 24

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/debugfs.c