summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_edid.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2020-05-19 09:05:58 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-07 13:18:51 +0200
commitc90e773c21fb3ba07d7f93e3f9b9ca28b120c5ca (patch)
treeff99aefc3fec041cebfca70c34383b1a07e5c0f7 /drivers/gpu/drm/drm_edid.c
parent92c09e88c188c81b27ef3d85b4643c0d77c6e1d3 (diff)
net: bmac: Fix read of MAC address from ROM
[ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
0 files changed, 0 insertions, 0 deletions