mbox series

[0/5] qedf: fixup NULL pointer reference in fc_lookup_rport()

Message ID 20180905135347.138195-1-hare@suse.de (mailing list archive)
Headers show
Series qedf: fixup NULL pointer reference in fc_lookup_rport() | expand

Message

Hannes Reinecke Sept. 5, 2018, 1:53 p.m. UTC
Hi all,

occasionally the qedf driver will crash in fc_lookup_rport() due to missing
locking and incorrect reference counting of the fc_rport_priv() structure
from libfc. This patchset fixes up the reference counting and ensures that
the locking rules of libfc are followed.

As usual, comments and reviews are welcome.

Hannes Reinecke (5):
  qedf: fixup bit operations
  qedf: fixup locking in qedf_restart_rport()
  qedf: missing kref_put in qedf_xmit()
  qedf: remove stale variables in qedf_eh_XXX functions
  qedf: fc_rport_priv reference counting fixes

 drivers/scsi/qedf/qedf_els.c  | 26 ++++++++++++++++++++++----
 drivers/scsi/qedf/qedf_io.c   | 32 ++++++++++++++++++++++----------
 drivers/scsi/qedf/qedf_main.c | 25 ++++++++++++-------------
 3 files changed, 56 insertions(+), 27 deletions(-)