From 2c01ef207fd5ad05b020af4ec5884c7446bb3b91 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 19 May 2013 18:10:20 +0000 Subject: [PATCH] fcst: Avoid invoking ft_cmd_done(NULL) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4867 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index cb482252c..631b2ec94 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -679,7 +679,8 @@ err: busy: FT_IO_DBG("cmd allocation failure - sending BUSY\n"); ft_send_resp_status(fp, SAM_STAT_BUSY, 0); - ft_cmd_done(fcmd); + if (fcmd) + ft_cmd_done(fcmd); } /*