diff options
| author | Xiubo Li <[email protected]> | 2017-07-12 15:51:17 +0800 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2017-07-30 15:12:32 -0700 |
| commit | c542942cb42186f99b6d715a833c7afad359f48f (patch) | |
| tree | 935be87483fc8dcd9029bae5cc61f322fe505121 /drivers/media/platform/vimc/vimc-sensor.c | |
| parent | 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff) | |
tcmu: Fix possible to/from address overflow when doing the memcpy
For most case the sg->length equals to PAGE_SIZE, so this bug won't
be triggered. Otherwise this will crash the kernel, for example when
all segments' sg->length equal to 1K.
Signed-off-by: Xiubo Li <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions