Skip to contentSkip to conversation

another ATM bug

DISCUSSION Jeff Garzik 2 participants 2 messages Oct 1, 2006

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

The following warning appears to be real:

drivers/atm/ambassador.c: In function ‘amb_open’:
drivers/atm/ambassador.c:1049: warning: ‘tx_rate_bits’ may be used uninitialized in this function

The variable is accessed before the make_rate() error code is checked, thus accessing an uninit'd value.

Jeff

#1 lore raw

(cc:'s trimmed again)

Quoted 5 lines · Jeff Garzik

drivers/atm/ambassador.c: In function ?amb_open?:
drivers/atm/ambassador.c:1049: warning: ?tx_rate_bits? may be used uninitialized in this function

The variable is accessed before the make_rate() error code is checked,

Or rather, the make_rate() error code isn't checked AT ALL ("error" appears to be a write-only variable) That seems to be the real bug

-Mitch