]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] digi_acceleport.c has bogus "address of" operator
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:21:14 +0000 (18:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:21:14 +0000 (18:21 -0700)
From: "Kurtis D. Rader" <kdrader@us.ibm.com>

http://bugme.osdl.org/show_bug.cgi?id=1365

The digi_acceleport.c USB serial driver has a bogus "address of" operator
that results in BUGs.

The problem is that digi_wakeup_write_lock() takes a pointer to a struct
usb_serial_port.  However, what gets passed is a pointer to a pointer to a
struct usb_serial_port.

drivers/usb/serial/digi_acceleport.c

index 07f227d3c64d7a057dcfc2a322f0436a40952bbc..e890bef70611b1c23c2102dfdc51e3102c2a11f2 100644 (file)
@@ -1728,8 +1728,8 @@ dbg( "digi_startup: TOP" );
                init_waitqueue_head( &priv->dp_flush_wait );
                priv->dp_in_close = 0;
                init_waitqueue_head( &priv->dp_close_wait );
-               INIT_WORK(&priv->dp_wakeup_work, (void *)digi_wakeup_write_lock,
-                               (void *)(&serial->port[i]));
+               INIT_WORK(&priv->dp_wakeup_work,
+                               digi_wakeup_write_lock, serial->port[i]);
 
                /* initialize write wait queue for this port */
                init_waitqueue_head( &serial->port[i]->write_wait );