Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 584126 | Differences between
and this patch

Collapse All | Expand All

(-)a/server/smartcard.c (-2 / +2 lines)
Lines 325-331 static void smartcard_char_device_notify_reader_add(SmartCardDeviceState *st) Link Here
325
    SpiceCharDeviceWriteBuffer *write_buf;
325
    SpiceCharDeviceWriteBuffer *write_buf;
326
    VSCMsgHeader *vheader;
326
    VSCMsgHeader *vheader;
327
327
328
    write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(vheader));
328
    write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(*vheader));
329
    if (!write_buf) {
329
    if (!write_buf) {
330
        spice_error("failed to allocate write buffer");
330
        spice_error("failed to allocate write buffer");
331
        return;
331
        return;
Lines 372-378 static void smartcard_char_device_notify_reader_remove(SmartCardDeviceState *st) Link Here
372
        spice_debug("reader add was never sent to the device");
372
        spice_debug("reader add was never sent to the device");
373
        return;
373
        return;
374
    }
374
    }
375
    write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(vheader));
375
    write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(*vheader));
376
    if (!write_buf) {
376
    if (!write_buf) {
377
        spice_error("failed to allocate write buffer");
377
        spice_error("failed to allocate write buffer");
378
        return;
378
        return;

Return to bug 584126