]> git.baikalelectronics.ru Git - kernel.git/commit
mpt3sas: combine fw_event_work and its event_data
authorJoe Lawrence <joe.lawrence@stratus.com>
Wed, 25 Jun 2014 21:05:34 +0000 (17:05 -0400)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:16:57 +0000 (17:16 -0400)
commitb62b265549d70f4cff10cbaec39dce16f9ca35bd
tree9bc01a311ea42f736209d247344ea879dc1f4ec6
parent7e8ead78e4ef0e89722ed9ab2618febf9d17478d
mpt3sas: combine fw_event_work and its event_data

Tack the firmware reply event_data payload to the end of its
corresponding struct fw_event_work allocation.  This matches the
convention in the mptfusion driver and simplifies the code.

This avoids the following smatch warning:

  drivers/scsi/mpt3sas/mpt3sas_scsih.c:2519
    mpt3sas_send_trigger_data_event() warn: possible memory leak of
    'fw_event'

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/mpt3sas/mpt3sas_scsih.c