From: Michal Kazior Date: Mon, 14 Jul 2014 13:25:25 +0000 (+0300) Subject: ath10k: sanitize tx ring index access properly X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993619443774f7ef4df3b98655df4c3bf298548c;p=pandora-kernel.git ath10k: sanitize tx ring index access properly The tx ring index was immediately trimmed with a bitmask. This discarded the 0xFFFFFFFF error case (which theoretically can happen when a device is abruptly disconnected) and led to using an invalid tx ring index. This could lead to memory corruption. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- Reading git-diff-tree failed