diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-08-30 17:36:16 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-02 06:09:16 -0400 |
commit | 5f6ac2cee25cb0bf6ec07249a6180cabd46a1913 (patch) | |
tree | ad093643c03448ee582a80f3d460019d99326da5 /drivers/message | |
parent | 02ccda2a2ffba8750dcebe13a09ce5f671ffcda6 (diff) |
scsi: bfa: Do not dereference port before it is null checked
Port is deferenced before it is null sanity checked, hence we
potentially have a null pointer dereference bug. Instead, initialise
trl_enabled from port->fcs->bfa after we are sure port is not null.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions