projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] libfc: don't exch_done() on invalid sequence ptr
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
scsi
/
libfc
/
fc_lport.c
diff --git
a/drivers/scsi/libfc/fc_lport.c
b/drivers/scsi/libfc/fc_lport.c
index
ca278d4
..
d385d11
100644
(file)
--- a/
drivers/scsi/libfc/fc_lport.c
+++ b/
drivers/scsi/libfc/fc_lport.c
@@
-980,7
+980,8
@@
drop:
rcu_read_unlock();
FC_LPORT_DBG(lport, "dropping unexpected frame type %x\n", fh->fh_type);
fc_frame_free(fp);
- lport->tt.exch_done(sp);
+ if (sp)
+ lport->tt.exch_done(sp);
}
/**