Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files40
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Makefile
- vsp1.h
- vsp1_brx.c
- vsp1_brx.h
- vsp1_clu.c
- vsp1_clu.h
- vsp1_dl.c
- vsp1_dl.h
- vsp1_drm.c
- vsp1_drm.h
- vsp1_drv.c
- vsp1_entity.c
- vsp1_entity.h
- vsp1_hgo.c
- vsp1_hgo.h
- vsp1_hgt.c
- vsp1_hgt.h
- vsp1_histo.c
- vsp1_histo.h
- vsp1_hsit.c
- vsp1_hsit.h
- vsp1_lif.c
- vsp1_lif.h
- vsp1_lut.c
- vsp1_lut.h
- vsp1_pipe.c
- vsp1_pipe.h
- vsp1_regs.h
- vsp1_rpf.c
- vsp1_rwpf.c
- vsp1_rwpf.h
- vsp1_sru.c
- vsp1_sru.h
- vsp1_uds.c
- vsp1_uds.h
- vsp1_uif.c
- vsp1_uif.h
- vsp1_video.c
- vsp1_video.h
- vsp1_wpf.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/platform/vsp1/vsp1_histo.h
Text · 1,898 bytes/* SPDX-License-Identifier: GPL-2.0+ */
/*
* vsp1_histo.h -- R-Car VSP1 Histogram API
*
* Copyright (C) 2016 Renesas Electronics Corporation
* Copyright (C) 2016 Laurent Pinchart
*
* Contact: Laurent Pinchart ([email protected])
*/
#ifndef __VSP1_HISTO_H__
#define __VSP1_HISTO_H__
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <media/media-entity.h>
#include <media/v4l2-dev.h>
#include <media/videobuf2-v4l2.h>
#include "vsp1_entity.h"
struct vsp1_device;
#define HISTO_PAD_SINK 0
#define HISTO_PAD_SOURCE 1
struct vsp1_histogram_buffer {
struct vb2_v4l2_buffer buf;
struct list_head queue;
void *addr;
};
struct vsp1_histogram {
struct vsp1_entity entity;
struct video_device video;
struct media_pad pad;
const u32 *formats;
unsigned int num_formats;
size_t data_size;
u32 meta_format;
struct mutex lock;
struct vb2_queue queue;
spinlock_t irqlock;
struct list_head irqqueue;
wait_queue_head_t wait_queue;
bool readout;
};
static inline struct vsp1_histogram *vdev_to_histo(struct video_device *vdev)
{
return container_of(vdev, struct vsp1_histogram, video);
}
static inline struct vsp1_histogram *subdev_to_histo(struct v4l2_subdev *subdev)
{
return container_of(subdev, struct vsp1_histogram, entity.subdev);
}
int vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo,
enum vsp1_entity_type type, const char *name,
const struct vsp1_entity_operations *ops,
const unsigned int *formats, unsigned int num_formats,
size_t data_size, u32 meta_format);
void vsp1_histogram_destroy(struct vsp1_entity *entity);
struct vsp1_histogram_buffer *
vsp1_histogram_buffer_get(struct vsp1_histogram *histo);
void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo,
struct vsp1_histogram_buffer *buf,
size_t size);
#endif /* __VSP1_HISTO_H__ */