staging: r888eu: use dynamic allocation for efuse buffer
authorMartin Kaiser <martin@kaiser.cx>
Wed, 13 Jul 2022 07:58:04 +0000 (09:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jul 2022 13:47:21 +0000 (15:47 +0200)
commitc1da5a7befa82c01e06c8ec2059bdc9ed422033b
treec076f13ca66895ed7512c06495eb5132a34974a2
parent4cdb845db3217091737159908fcba1f643d818a1
staging: r888eu: use dynamic allocation for efuse buffer

Use kmalloc to allocate the efuse buffer in ReadAdapterInfo8188EU and
free it on exit. This is better than using a 512 byte array on the stack.

It's ok to drop the __aligned(4) qualifier. kmalloc aligns to
ARCH_KMALLOC_MINALIGN, this is at least 8 bytes.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220713075804.140986-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c