public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] ali-ircc.c: get spin_lock twice
@ 2009-10-14 12:14 iceberg
  0 siblings, 0 replies; only message in thread
From: iceberg @ 2009-10-14 12:14 UTC (permalink / raw)
  To: Benjamin Kong, Samuel Ortiz, rda-users, linux-kernel

	KERNEL_VERSION: 2.6.31
	DESCRIBE:
Driver reports/drivers/net/irda/ali-ircc.c  - get spin_lock twice

drivers/net/irda/ali-ircc.c:
2028static int ali_ircc_net_ioctl(struct net_device *dev, struct ifreq 
*rq, int cmd)

...
2056		spin_lock_irqsave(&self->lock, flags);
2057		ali_ircc_change_speed(self, irq->ifr_baudrate);
...

Path to second spin_lock_irqsave(&self->lock, flags) 
 from ali_ircc_change_speed:
1. ali_ircc_change_speed calls ali_ircc_sir_change_speed ./drivers/net/
irda/ali-ircc.c:999
2. ali_ircc_sir_change_speed calls spin_lock_irqsave at ./drivers/net/
irda/ali-ircc.c:1084:

1050static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, 
__u32 speed)
1084        spin_lock_irqsave(&self->lock, flags);

Found by: Linux Driver Verification project


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-14  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 12:14 [BUG] ali-ircc.c: get spin_lock twice iceberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox