diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-08-23 12:52:31 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-30 01:44:21 +0300 |
commit | e82e6ff7779a76ea9b2161ee5fe2cdd9387cf263 (patch) | |
tree | 7eaeeac55d4a391af35ff87e30056136d88e66b1 /drivers/scsi/qedf/qedf_fip.c | |
parent | 391a2417942358de4c794846a4a7dde095010258 (diff) | |
download | linux-e82e6ff7779a76ea9b2161ee5fe2cdd9387cf263.tar.xz |
scsi: qedf: Print message during bailout conditions
Print messages during exiting condition to help debugging.
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf/qedf_fip.c')
-rw-r--r-- | drivers/scsi/qedf/qedf_fip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qedf/qedf_fip.c b/drivers/scsi/qedf/qedf_fip.c index 362d2bed72fb..5143d93bcc38 100644 --- a/drivers/scsi/qedf/qedf_fip.c +++ b/drivers/scsi/qedf/qedf_fip.c @@ -23,8 +23,11 @@ void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf) int rc = -1; skb = dev_alloc_skb(sizeof(struct fip_vlan)); - if (!skb) + if (!skb) { + QEDF_ERR(&qedf->dbg_ctx, + "Failed to allocate skb.\n"); return; + } eth_fr = (char *)skb->data; vlan = (struct fip_vlan *)eth_fr; |