Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files46
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- pvrusb2-audio.c
- pvrusb2-audio.h
- pvrusb2-context.c
- pvrusb2-context.h
- pvrusb2-cs53l32a.c
- pvrusb2-cs53l32a.h
- pvrusb2-ctrl.c
- pvrusb2-ctrl.h
- pvrusb2-cx2584x-v4l.c
- pvrusb2-cx2584x-v4l.h
- pvrusb2-debug.h
- pvrusb2-debugifc.c
- pvrusb2-debugifc.h
- pvrusb2-devattr.c
- pvrusb2-devattr.h
- pvrusb2-dvb.c
- pvrusb2-dvb.h
- pvrusb2-eeprom.c
- pvrusb2-eeprom.h
- pvrusb2-encoder.c
- pvrusb2-encoder.h
- pvrusb2-fx2-cmd.h
- pvrusb2-hdw-internal.h
- pvrusb2-hdw.c
- pvrusb2-hdw.h
- pvrusb2-i2c-core.c
- pvrusb2-i2c-core.h
- pvrusb2-io.c
- pvrusb2-io.h
- pvrusb2-ioread.c
- pvrusb2-ioread.h
- pvrusb2-main.c
- pvrusb2-std.c
- pvrusb2-std.h
- pvrusb2-sysfs.c
- pvrusb2-sysfs.h
- pvrusb2-util.h
- pvrusb2-v4l2.c
- pvrusb2-v4l2.h
- pvrusb2-video-v4l.c
- pvrusb2-video-v4l.h
- pvrusb2-wm8775.c
- pvrusb2-wm8775.h
- pvrusb2.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/usb/pvrusb2/pvrusb2-io.h
Text · 2,950 bytes/*
*
*
* Copyright (C) 2005 Mike Isely <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __PVRUSB2_IO_H
#define __PVRUSB2_IO_H
#include <linux/usb.h>
#include <linux/list.h>
typedef void (*pvr2_stream_callback)(void *);
enum pvr2_buffer_state {
pvr2_buffer_state_none = 0, // Not on any list
pvr2_buffer_state_idle = 1, // Buffer is ready to be used again
pvr2_buffer_state_queued = 2, // Buffer has been queued for filling
pvr2_buffer_state_ready = 3, // Buffer has data available
};
struct pvr2_stream;
struct pvr2_buffer;
struct pvr2_stream_stats {
unsigned int buffers_in_queue;
unsigned int buffers_in_idle;
unsigned int buffers_in_ready;
unsigned int buffers_processed;
unsigned int buffers_failed;
unsigned int bytes_processed;
};
/* Initialize / tear down stream structure */
struct pvr2_stream *pvr2_stream_create(void);
void pvr2_stream_destroy(struct pvr2_stream *);
void pvr2_stream_setup(struct pvr2_stream *,
struct usb_device *dev,int endpoint,
unsigned int tolerance);
void pvr2_stream_set_callback(struct pvr2_stream *,
pvr2_stream_callback func,
void *data);
void pvr2_stream_get_stats(struct pvr2_stream *,
struct pvr2_stream_stats *,
int zero_counts);
/* Query / set the nominal buffer count */
int pvr2_stream_get_buffer_count(struct pvr2_stream *);
int pvr2_stream_set_buffer_count(struct pvr2_stream *,unsigned int);
/* Get a pointer to a buffer that is either idle, ready, or is specified
named. */
struct pvr2_buffer *pvr2_stream_get_idle_buffer(struct pvr2_stream *);
struct pvr2_buffer *pvr2_stream_get_ready_buffer(struct pvr2_stream *);
struct pvr2_buffer *pvr2_stream_get_buffer(struct pvr2_stream *sp,int id);
/* Find out how many buffers are idle or ready */
int pvr2_stream_get_ready_count(struct pvr2_stream *);
/* Kill all pending buffers and throw away any ready buffers as well */
void pvr2_stream_kill(struct pvr2_stream *);
/* Set up the actual storage for a buffer */
int pvr2_buffer_set_buffer(struct pvr2_buffer *,void *ptr,unsigned int cnt);
/* Find out size of data in the given ready buffer */
unsigned int pvr2_buffer_get_count(struct pvr2_buffer *);
/* Retrieve completion code for given ready buffer */
int pvr2_buffer_get_status(struct pvr2_buffer *);
/* Retrieve ID of given buffer */
int pvr2_buffer_get_id(struct pvr2_buffer *);
/* Start reading into given buffer (kill it if needed) */
int pvr2_buffer_queue(struct pvr2_buffer *);
#endif /* __PVRUSB2_IO_H */