diff options
author | James Smart <[email protected]> | 2019-08-27 14:27:46 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-08-29 18:07:59 -0400 |
commit | 7f9989bace91a7a36051d64cbf46f7760c52bbf0 (patch) | |
tree | 534bf607455dc1753e412c177acadf1384b44313 /net/switchdev/switchdev.c | |
parent | 844b17d7438bc6e8acbd85163b7c6b9bce0a6ea2 (diff) |
scsi: lpfc: Resolve checker warning for lpfc_new_io_buf()
Per Dan Carpenter:
The patch d79c9e9d4b3d: "scsi: lpfc: Support dynamic unbounded SGL lists on
G7 hardware." from Aug 14, 2019, leads to the following static checker
warning:
drivers/scsi/lpfc/lpfc_init.c:4107 lpfc_new_io_buf()
error: not allocating enough data 784 vs 768
There was no need to compare sizes nor to allocate size based on a define.
Change allocation to use actual structure length
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
CC: Dan Carpenter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions