commit | 5f6ac2cee25cb0bf6ec07249a6180cabd46a1913 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Aug 30 17:36:16 2016 +0100 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Fri Sep 02 06:09:16 2016 -0400 |
tree | ad093643c03448ee582a80f3d460019d99326da5 | |
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>