Skip to contentSkip to conversation

Bug in rpxlite.c ?

DISCUSSION Robert Kaiser 2 participants 2 messages Mar 5, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I just stumbled over this line in rpxlite.c and I'm wondering if the "* ofs" should really be a "+ ofs":

__u8 rpxlite_read8(struct map_info *map, unsigned long ofs)

{
    return readb(map->map_priv_1 * ofs);
}

----------------------------------------------------------------
Robert Kaiser email: [email protected]
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 7 lines · Robert Kaiser

I just stumbled over this line in rpxlite.c and I'm wondering if the "* ofs" should really be a "+ ofs":

__u8 rpxlite_read8(struct map_info *map, unsigned long ofs)

{
    return readb(map->map_priv_1 * ofs);
}

Heh, yeah - I suppose nobody's tried to use 8-bit chips in an rpxlite board yet :) Please commit the change.

Signature · 6 lines
dwmw2




To unsubscribe, send "unsubscribe mtd" to [email protected]