diff options
| author | Ming Qian <ming.qian@nxp.com> | 2024-09-13 15:21:44 +0900 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-10-12 16:28:25 +0200 |
| commit | d2b7ecc26bd5406d5ba927be1748aa99c568696c (patch) | |
| tree | 0e2cd5a4bbc92e73f9329aef94c7d7e0986b12dc /tools/perf/scripts/python | |
| parent | 21ea3dcf85907337808c85cf15b50bf43f154b9a (diff) | |
| download | linux-d2b7ecc26bd5406d5ba927be1748aa99c568696c.tar.gz linux-d2b7ecc26bd5406d5ba927be1748aa99c568696c.zip | |
media: imx-jpeg: Set video drvdata before register video device
The video drvdata should be set before the video device is registered,
otherwise video_drvdata() may return NULL in the open() file ops, and led
to oops.
Fixes: 2db16c6ed72c ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: TaoJiang <tao.jiang_2@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
