Skip to content

driver chokes if bufcnt < 2 #7

@mischief

Description

@mischief

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions