OSDN Git Service

r8152: add checking fw_offset field of struct fw_mac
authorHayes Wang <hayeswang@realtek.com>
Mon, 21 Oct 2019 03:41:11 +0000 (11:41 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 16:45:21 +0000 (09:45 -0700)
commit5a16a3d9f9b9714508d6c9ab69897576a3709566
tree315dac4a588866607b1c3d6e5aa18fd56fed214b
parenta66edaafae08c37f9ea31fdfbc64d2a9be8d588f
r8152: add checking fw_offset field of struct fw_mac

Make sure @fw_offset field of struct fw_mac is more than the size
of struct fw_mac.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/usb/r8152.c