All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [FCoE] Don't panic if session is null in fc_sess_seq_alloc(), just return null.
@ 2007-12-31 18:19 Rob Love
  0 siblings, 0 replies; only message in thread
From: Rob Love @ 2007-12-31 18:19 UTC (permalink / raw)
  To: linux-scsi

Signed-off-by: Rob Love <robert.w.love@intel.com>
---

 drivers/scsi/ofc/libfc/fc_sess.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/ofc/libfc/fc_sess.c b/drivers/scsi/ofc/libfc/fc_sess.c
index 34cc2b0..8ac6811 100644
--- a/drivers/scsi/ofc/libfc/fc_sess.c
+++ b/drivers/scsi/ofc/libfc/fc_sess.c
@@ -665,6 +665,8 @@ struct fc_seq *fc_sess_seq_alloc(struct fc_sess *sess,
 	struct fc_exch *ep;
 	struct fc_local_port *lp;
 
+	if (!sess)
+		return NULL;
 	lp = sess->fs_local_port;
 	sp = fc_seq_start_exch(lp->fl_vf->vf_exch_mgr,
 			       recv, errh, arg, sess->fs_local_fid,


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-31 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-31 18:19 [PATCH] [FCoE] Don't panic if session is null in fc_sess_seq_alloc(), just return null Rob Love

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.