diff options
| author | Hans Verkuil <[email protected]> | 2019-09-04 06:04:07 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-09-05 06:26:57 -0300 |
| commit | 6f51fdfd8229d5358c2d6e272cf73478866e8ddc (patch) | |
| tree | 760a1129a097cb65cb0cd32d982ce8d658c5d61a /lib/mpi/mpi-div.c | |
| parent | 20a438d53fd9d12a894161bc56cbeab7a9993c39 (diff) | |
media: videobuf-core.c: poll_wait needs a non-NULL buf pointer
poll_wait uses &buf->done, but buf is NULL. Move the poll_wait to later
in the function once buf is correctly set and only call it if it is
non-NULL.
Signed-off-by: Hans Verkuil <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Fixes: bb436cbeb918 ("media: videobuf: fix epoll() by calling poll_wait first")
Cc: <[email protected]> # for v5.1 and up
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions