diff options
| author | Jozef Balga <[email protected]> | 2018-08-21 09:01:04 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-08-29 17:54:37 +0000 |
| commit | 312f73b648626a0526a3aceebb0a3192aaba05ce (patch) | |
| tree | 6b295d08d00ac14979d382868e6d25c8820eed55 /drivers/net/xen-netback/interface.c | |
| parent | media: video_function_calls.rst: drop obsolete video-set-attributes reference (diff) | |
| download | kernel-312f73b648626a0526a3aceebb0a3192aaba05ce.tar.gz kernel-312f73b648626a0526a3aceebb0a3192aaba05ce.zip | |
media: af9035: prevent buffer overflow on write
When less than 3 bytes are written to the device, memcpy is called with
negative array size which leads to buffer overflow and kernel panic. This
patch adds a condition and returns -EOPNOTSUPP instead.
Fixes bugzilla issue 64871
[[email protected]: fix a merge conflict and changed the
condition to match the patch's comment, e. g. len == 3 could
also be valid]
Signed-off-by: Jozef Balga <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
