NULL ptr dereference in LAN91xDxe
Bug #1304402 reported by
Mark Salter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro UEFI |
New
|
Undecided
|
Roy Franz |
Bug Description
I tried adding LAN91xDxe support to Foundation model and ran
into a NULL ptr dereference of DstAddr in SnpTransmit():
// Check for the nature of the frame
if (DstAddr->Addr[0] == 0xFF) {
LanDriver-
} else if ((DstAddr->Addr[0] & 0x1) == 1) {
LanDriver-
} else {
LanDriver-
}
DstAddr is passed into SnpTransmit and is an optional argument.
Not sure why this wasn't seen on FVP model. Patch attached, but
it may not be the proper fix.
Changed in linaro-uefi: | |
assignee: | Steven Kinney (steven-kinney) → Roy Franz (roy-franz) |
To post a comment you must log in.
Steve, have a look at how this pans out once ARM's Ethernet drivers go upstream. Should be in time for 2014.05.