From: Michal Kazior Date: Tue, 28 Oct 2014 09:34:36 +0000 (+0100) Subject: ath10k: fix possible bmi crash X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~31^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04ed9dfe499965b641b69575137af9f41a78e609;p=pandora-kernel.git ath10k: fix possible bmi crash While testing other things I've found that CE items aren't cleared properly. This could lead to null dereferences in BMI. To prevent that make sure CE revoking clears the nbytes value (which is used as a buffer completion indication) and memset the entire CE ring data shared between host and target when (re)initializing. Also make sure to check BMI xfer pointer and print a splat instead of crashing the kernel. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- Reading git-diff-tree failed