if a aoe target sends a bufcnt of 0 or 1, the driver will choke with no indication of the problem.
the issue shows up during handling the config query response. if bufcnt is 1, t->maxout is calculated as 0 at aoecmd.c#L1553. later, newframe is called to send the ata identify command, but the frame is NULL at aoecmd.c#L284 because of the t->nout < t->maxout check.
maybe there should be a warning print in the driver if this occurs. it took me a long time to debug my target implementation because of this small problem :)
if a aoe target sends a bufcnt of 0 or 1, the driver will choke with no indication of the problem.
the issue shows up during handling the config query response. if bufcnt is 1, t->maxout is calculated as 0 at aoecmd.c#L1553. later, newframe is called to send the ata identify command, but the frame is NULL at aoecmd.c#L284 because of the
t->nout < t->maxoutcheck.maybe there should be a warning print in the driver if this occurs. it took me a long time to debug my target implementation because of this small problem :)