richard
2007-03-11 15:39:57 UTC
I've been running sparse, the kernel code checking tool, on our code
base. it generates some warnings but most of them are not going to be a
problem.
The only one that might possibly be an issue is in hfa384x.c used when
building for the non usb case.
the warning is :-
linux-wlan-ng-devel/src/prism2/driver/hfa384x.c:1687:2: warning: context imbalance in 'hfa384x_cmd_notify'
- different lock contexts for basic block
and the code block :-
if ( result ) {
WLAN_LOG_DEBUG(1,
"copy_to_bap(%04x, 0, %d) failed, result=0x%x\n",
hw->infofid, len, result);
result = -EIO;
goto failed;
}
result = hfa384x_docmd_wait(hw, &cmd);
spin_unlock_bh(&hw->cmdlock);
failed:
spin_unlock_bh(&hw->cmdlock);
DBFEXIT;
return result;
which will call the spin_unlock twice in the successful case.
As I only have a usb adaptor I'm not sure if this is a real issue, but
it might be worth looking at if you've got a pcmcia or pci card.
HTH
Cheers
Richard
base. it generates some warnings but most of them are not going to be a
problem.
The only one that might possibly be an issue is in hfa384x.c used when
building for the non usb case.
the warning is :-
linux-wlan-ng-devel/src/prism2/driver/hfa384x.c:1687:2: warning: context imbalance in 'hfa384x_cmd_notify'
- different lock contexts for basic block
and the code block :-
if ( result ) {
WLAN_LOG_DEBUG(1,
"copy_to_bap(%04x, 0, %d) failed, result=0x%x\n",
hw->infofid, len, result);
result = -EIO;
goto failed;
}
result = hfa384x_docmd_wait(hw, &cmd);
spin_unlock_bh(&hw->cmdlock);
failed:
spin_unlock_bh(&hw->cmdlock);
DBFEXIT;
return result;
which will call the spin_unlock twice in the successful case.
As I only have a usb adaptor I'm not sure if this is a real issue, but
it might be worth looking at if you've got a pcmcia or pci card.
HTH
Cheers
Richard