Commit 0e8b438b authored by David S. Miller's avatar David S. Miller

SunGEM bug fix:

- Fix MAC address pointer calculation when using random
MAC addresses
parent 7099195a
......@@ -2823,7 +2823,7 @@ static void get_gem_mac_nonobp(struct pci_dev *pdev, unsigned char *dev_addr)
dev_addr[0] = 0x08;
dev_addr[1] = 0x00;
dev_addr[2] = 0x20;
get_random_bytes(dev_addr, 3);
get_random_bytes(dev_addr + 3, 3);
return;
}
#endif /* not Sparc and not PPC */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment