diff options
author | James Smart <jsmart2021@gmail.com> | 2022-04-13 00:20:02 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-19 04:48:46 +0200 |
commit | d51cf5bd926c7d00bd8a77fc39db73766fbf2a27 (patch) | |
tree | 13e0dc92f2138300159974eb563a9d7bdb5f8a3e /drivers/hid/hid-belkin.c | |
parent | scsi: lpfc: Introduce FC_RSCN_MEMENTO flag for tracking post RSCN completion (diff) | |
download | linux-d51cf5bd926c7d00bd8a77fc39db73766fbf2a27.tar.xz linux-d51cf5bd926c7d00bd8a77fc39db73766fbf2a27.zip |
scsi: lpfc: Fix field overload in lpfc_iocbq data structure
The lpfc_iocbq data structure has void * pointers that are overloaded to be
as many as 8 different data types and the driver translates the void * by
casting. This patch removes the void * pointers by declaring the specific
types needed by the driver. It also expands the context_un to include more
seldom used pointer types to save structure bytes. It also groups the u8
types together to pack the 8 bytes needed. This work allows the lpfc_iocbq
data structure to be more strongly typed and keeps it from being allocated
from the 512 byte slab.
[mkp: rolled in zeroday fix]
Link: https://lore.kernel.org/r/20220412222008.126521-21-jsmart2021@gmail.com
Reported-by: kernel test robot <lkp@intel.com>
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/hid/hid-belkin.c')
0 files changed, 0 insertions, 0 deletions