Returned length should include header length.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
                                                void *dest, size_t size)
 {
        unsigned char *buf = dest;
+       int count;
 
        /*
         * The first byte of the packet we send to the device contains an
         */
        *buf = ir_xbof | ir_baud;
 
-       return kfifo_out_locked(&port->write_fifo, buf + 1, size - 1,
+       count = kfifo_out_locked(&port->write_fifo, buf + 1, size - 1,
                                                                &port->lock);
+       return count + 1;
 }
 
 static void ir_process_read_urb(struct urb *urb)