aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2016-07-21 09:14:03 -0300
committerMauro Carvalho Chehab <[email protected]>2016-08-24 10:18:42 -0300
commit10791829eb52d572915ef621f06e134488d4b204 (patch)
treedd18ba22b83a272911524270305dd9ccc6a86d8f /tools/perf/scripts/python
parent0ff657b0f6120cb53f98b1b42c87af34670edff5 (diff)
[media] vb2: add WARN_ONs checking if a valid struct device was passed
The dma-contig and dma-sg memops require a valid struct device for the DMA to be handled correctly. Call WARN_ON and return ERR_PTR(-EINVAL) if it was NULL. Setting the correct device pointer was forgotten in several new driver submissions. This was caught during code review, but it really should be caught in the code. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions