Skip to contentSkip to conversation

bna: PCI Probe Fix

DISCUSSION Dan Carpenter 2 participants 2 messages Sep 20, 2011 – Sep 22, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Rasesh,

There is a problem introduced in 0caa9aaec5 "bna: PCI Probe Fix".

If register_netdev() fails now, then we call mutex_unlock(&bnad->conf_mutex); on the error path, but it's already unlocked.

regards,
dan carpenter

#1 lore raw
Quoted 8 lines

From: Dan Carpenter [mailto:[email protected]]
Sent: Tuesday, September 20, 2011 1:47 AM

There is a problem introduced in 0caa9aaec5 "bna: PCI Probe Fix".

If register_netdev() fails now, then we call mutex_unlock(&bnad-

Quoted 1 line

conf_mutex);

on the error path, but it's already unlocked.

Thanks Dan!

Sent a fix so that we acquire the lock in error path which will be later unlocked after the cleanup.

Regards,
Rasesh