Configuration ROM length should be unsigned.
MFC: 1 week
This commit is contained in:
parent
7de25fce9a
commit
e340a7ac14
@ -375,7 +375,7 @@ struct fw_speed_map {
|
||||
|
||||
struct fw_crom_buf {
|
||||
struct fw_eui64 eui;
|
||||
int len;
|
||||
uint32_t len;
|
||||
void *ptr;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user