CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2014/09/28 18:07:55

Modified files:
        sys/dev/ic     : wdc.c 

Log message:
correctly decrement the C_SCSIXFER reference count in wdc_xfer flags
if the ata stack xfer free path is called before teh scsi xfer free
path. this fixes a leak.

in the vast majority of uses (eg, filesystems mounted on cd(4) via
atapiscsi(4)) the scsi xfer free is always done first. however, if
you're doing ioctls (eg, cdio(1)), the scsi ref is held over to the
ioctl completion path, so the ata xfer free happens first.

problem found by patrick keshishian who did some excellent work
debugging this and providing the right fix for it.

ok jmatthew@

Reply via email to