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
This commit is contained in:
Bart Van Assche
2013-05-19 18:10:20 +00:00
parent aec51e803c
commit 2c01ef207f

View File

@@ -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);
}
/*