⬢ DragonFlyBSD Kernel Audit
DF-4989 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/raid/tws/tws_user.c
+++ b/sys/dev/raid/tws/tws_user.c
@@ -289,10 +289,11 @@ tws_ioctl_aen(struct tws_softc *sc, u_long cmd, void *buf)
             }  else {
                 lpkt.time_remaining_msec = (u_int32_t)
                           ((sc->ioctl_lock.timeout - ctime) * 1000);
                 ubuf->driver_pkt.status = TWS_IOCTL_LOCK_ALREADY_HELD;
 
             }
+            memcpy(ubuf->data_buf, &lpkt, sizeof(struct tws_lock_packet));
             break;
         case TWS_IOCTL_RELEASE_LOCK :
             if (sc->ioctl_lock.lock == TWS_IOCTL_LOCK_FREE) {
                 ubuf->driver_pkt.status = TWS_IOCTL_LOCK_NOT_HELD;
             } else {