Changeset 0dab4850 in mainline for uspace/lib/ata/src/ata.c


Ignore:
Timestamp:
2025-02-04T19:03:34Z (10 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
832cbe7
Parents:
b1490d2
Message:

Fix driver crash when ATA channel contains no usable devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ata/src/ata.c

    rb1490d2 r0dab4850  
    257257
    258258        for (i = 0; i < MAX_DEVICES; i++) {
     259                if (chan->device[i].present == false)
     260                        continue;
     261
    259262                rc = ata_device_remove(&chan->device[i]);
    260263                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.