]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/libfc/fc_lport.c
[SCSI] libfc: don't exch_done() on invalid sequence ptr
[karo-tx-linux.git] / drivers / scsi / libfc / fc_lport.c
index ca278d4b0f66854ebbb24c6e79e48e235afa892c..d385d1147889856899a2a5a94248f95f4b71b5f9 100644 (file)
@@ -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);
 }
 
 /**