]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: remove unecessary PTR_ALIGN()s
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Apr 2018 08:37:17 +0000 (11:37 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 17:24:32 +0000 (20:24 +0300)
commit7449edea8f96f271b2378abe748cf921e7bb842f
tree517224e9bd35cc7500d9fdca36e13a1e3b10a0db
parent772a1d82828bafa0637b91bd9c0a7230bbb12386
rsi: remove unecessary PTR_ALIGN()s

The issue here is that we allocate "data" and then set
"data = PTR_ALIGN(data, 8);" and then we free the aligned pointer
instead of the original pointer.

kmalloc() pointers are already ARCH_SLAB_MINALIGN aligned which is 8 or
more on everything except certain Xtensa variants.  We decided that if
the Xtensa people ever notice a bug here then we'll tell them the bug is
on their side.  ;)

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio.c