Benign repos Download

amdgpu_bo_list.c

Assigns a negative errno constantKernel to userspace data transfer
SHA-2565561f4ac5efe291934c76a7a69117fb59150b878b55f33ffe4af61d9cf8a5d21
MaleculeO(Er)H(Os)

Evidence

English function-word token "the" lines 5–8
5:39… of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation th …
imports amdgpu.h lines 28–38
28:6… Christian König <deathsimple@vodafone.de>
29 */
30
31#include <linux/sort.h>
32#include <linux/uaccess.h>
33
34#include "amdgpu.h"
35#include "amdgpu_trace.h"
36
37#define AMDGPU_BO_LIST_MAX_PRIORITY 32u
38#define AMDGPU_BO_LIST_NUM_BUCKETS (AMDGPU_BO_LIST_M …
Kernel error code return lines 79–88
79:3… ist = kvzalloc_flex(*list, entries, num_entries);
80 if (!list)
81 return -ENOMEM;
82
83 kref_init(&list->refcount);
⋯5 lines
Assigns a negative errno constant lines 94–103
94:9… drm_gem_object_lookup(filp, info[i].bo_handle);
95 if (!gobj) {
96 r = -ENOENT;
97 goto error_free;
98 }
⋯5 lines
Kernel to userspace data transfer lines 189–194
189:9… drm_amdgpu_bo_list_entry *info;
190
191 /* copy the handle array from userspace to a kernel buffer */
192 if (likely(info_size == bo_info_size)) {
193 info = vmemdup_array_user(uptr, bo_number, info_size);
194 if (IS_ERR(info) …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.