Configuration ROM length should be unsigned.

MFC: 1 week
This commit is contained in:
Hidetoshi Shimokawa 2007-04-24 12:15:05 +00:00
parent 7de25fce9a
commit e340a7ac14
2 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ struct fw_speed_map {
struct fw_crom_buf {
struct fw_eui64 eui;
int len;
uint32_t len;
void *ptr;
};

View File

@ -712,7 +712,7 @@ out:
else
len = fwdev->rommax - CSRROMOFF + 4;
}
if (crom_buf->len < len && crom_buf->len >= 0)
if (crom_buf->len < len)
len = crom_buf->len;
else
crom_buf->len = len;