net_native: note a future bug risk
authorAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 20:23:34 +0000 (20:23 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 20:23:34 +0000 (20:23 +0000)
Kernel/dev/net/net_native.c

index b63f113..510e452 100644 (file)
@@ -232,6 +232,8 @@ static uint16_t netn_queuebytes(struct socket *s)
                return 0;
 
        udata.u_sysio = false;
+       /* FIXME: if we go over 64K these will need some long casts to force
+          the types on the right side */
        udata.u_offset = sn * SOCKBUFOFF + RXBUFOFF + sd->tnext;
 
        /* Wrapped part of the ring buffer */