Skip to content
Commit bb22c36c authored by Somnath Kotur's avatar Somnath Kotur Committed by Jason Gunthorpe
Browse files

RDMA/bnxt_re: Prevent driver crash due to NULL pointer in error message print



crsqe->resp would be NULL in case the host command timed out before
getting a response from HW. Check for NULL pointer to avoid a potential
crash while printing the error message.

Signed-off-by: default avatarSomnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: default avatarSelvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent f2bd4d09
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment