Changeset 1c6c3e1d in mainline for uspace/srv/hid/display/cfgops.c


Ignore:
Timestamp:
2023-10-22T17:55:33Z (7 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
ticket/834-toolchain-update
Children:
350ec74
Parents:
315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/cfgops.c

    r315d487 r1c6c3e1d  
    197197        ds_cfgclient_t *cfgclient = (ds_cfgclient_t *)arg;
    198198        ds_seat_t *seat;
     199        ds_seat_t *s;
    199200
    200201        log_msg(LOG_DEFAULT, LVL_DEBUG, "dispcfg_seat_delete()");
     
    205206                ds_display_unlock(cfgclient->display);
    206207                return ENOENT;
     208        }
     209
     210        /* Verify we are not deleting the last seat */
     211        s = ds_display_first_seat(cfgclient->display);
     212        if (s == seat && ds_display_next_seat(s) == NULL) {
     213                ds_display_unlock(cfgclient->display);
     214                return EBUSY;
    207215        }
    208216
Note: See TracChangeset for help on using the changeset viewer.