Re: [PATCH] media:vivid: add sanity check to avoid divide error and set value to 1 if 0.

2019-06-27 Thread Vandana BN
On 27/06/19 12:58 PM, Hans Verkuil wrote: > On 6/26/19 8:01 AM, Vandana BN wrote: >> Syzbot reported divide error in vivid_thread_vid_cap, which has been >> seen only once and doesnot have a reproducer. >> This patch sanity checks for the denominator value with WARN_ON if it is 0 >> and replaces

Re: [PATCH] media:vivid: add sanity check to avoid divide error and set value to 1 if 0.

2019-06-27 Thread Hans Verkuil
On 6/26/19 8:01 AM, Vandana BN wrote: > Syzbot reported divide error in vivid_thread_vid_cap, which has been > seen only once and doesnot have a reproducer. > This patch sanity checks for the denominator value with WARN_ON if it is 0 > and replaces it with 1. > > Reported-by: syz...@syzkaller.app

[PATCH] media:vivid: add sanity check to avoid divide error and set value to 1 if 0.

2019-06-25 Thread Vandana BN
Syzbot reported divide error in vivid_thread_vid_cap, which has been seen only once and doesnot have a reproducer. This patch sanity checks for the denominator value with WARN_ON if it is 0 and replaces it with 1. Reported-by: syz...@syzkaller.appspotmail.com divide error: [#1] PREEMPT SMP