Commit fc32c4d8 authored by Madarasz Gergely's avatar Madarasz Gergely Committed by David S. Miller

[NET]: Fix get_random_bytes() call in sunhme.c:get_hme_mac_nonsparc().

parent 49ac163b
...@@ -2996,7 +2996,7 @@ static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr) ...@@ -2996,7 +2996,7 @@ static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr)
dev_addr[0] = 0x08; dev_addr[0] = 0x08;
dev_addr[1] = 0x00; dev_addr[1] = 0x00;
dev_addr[2] = 0x20; dev_addr[2] = 0x20;
get_random_bytes(dev_addr, 3); get_random_bytes(&dev_addr[3], 3);
return; return;
} }
#endif /* !(__sparc__) */ #endif /* !(__sparc__) */
......
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