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 files23
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- bug.h
- compiler.h
- device.h
- dma-mapping.h
- err.h
- export.h
- hrtimer.h
- irqreturn.h
- kernel.h
- kmemleak.h
- module.h
- printk.h
- ratelimit.h
- scatterlist.h
- slab.h
- thread_info.h
- uaccess.h
- uio.h
- virtio.h
- virtio_byteorder.h
- virtio_config.h
- virtio_ring.h
- vringh.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/virtio/linux/err.h
Text · 564 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef ERR_H
#define ERR_H
#define MAX_ERRNO 4095
#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
static inline void * __must_check ERR_PTR(long error)
{
return (void *) error;
}
static inline long __must_check PTR_ERR(const void *ptr)
{
return (long) ptr;
}
static inline long __must_check IS_ERR(const void *ptr)
{
return IS_ERR_VALUE((unsigned long)ptr);
}
static inline long __must_check IS_ERR_OR_NULL(const void *ptr)
{
return !ptr || IS_ERR_VALUE((unsigned long)ptr);
}
#endif /* ERR_H */