]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "Staging: rtl8188eu: rtw_efuse: Use sizeof type *pointer instead of sizeof...
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Jun 2016 19:01:19 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jun 2016 18:21:45 +0000 (11:21 -0700)
commit39041c0dc80eeb0c3afd0b9c12384e44ef263885
treed9133786607424e7fe917fe48311157cb2c79c3e
parent903d23611b6f52ee21c7a5b22ed1ffae97607efe
Revert "Staging: rtl8188eu: rtw_efuse: Use sizeof type *pointer instead of sizeof type."

This reverts commit 46db34520224 ("Staging: rtl8188eu: rtw_efuse: Use
sizeof type *pointer instead of sizeof type.").

This commit is wrong, the rtw_malloc2d helper function takes the size of
the array elements as its 3th argument, whereas sizeof(*eFuseWord)
gives the size of a pointer instead of the size of a u16.

Since sizeof(void *) > sizeof(u16) this has no adverse effects, but it
is still wrong.

Cc: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c