summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-ftgpio010.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2020-05-19 04:05:58 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-19 22:03:37 +0300
commitef01cee2ee1b369c57a936166483d40942bcc3e3 (patch)
tree1353e6ff7c37c9191a6d0d8bf6cab56e77e0a9f2 /drivers/gpio/gpio-ftgpio010.c
parentb15e62631c5f19fea9895f7632dae9c1b27fe0cd (diff)
downloadlinux-ef01cee2ee1b369c57a936166483d40942bcc3e3.tar.xz
net: bmac: Fix read of MAC address from ROM
In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This change fixes the for-loop to only read/write six bytes. Based on a proposed fix from Finn Thain <fthain@telegraphics.com.au>. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reported-by: Stan Johnson <userm57@yahoo.com> Tested-by: Stan Johnson <userm57@yahoo.com> Reported-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpio/gpio-ftgpio010.c')
0 files changed, 0 insertions, 0 deletions