Benign repos Download

drm_colorop.c

Removes an entry from a linked listCopies bytes with native memcpy
SHA-2567a64f3e179b11749ab4a47fb504c7a4ddcf33ec546fa64a91488ed36f9ffc386

Evidence

imports <drm/drm_colorop.h> lines 19–37
19:67… RWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 * Authors: AMD
24 *
25 */
26
27#include <drm/drm_colorop.h>
28#include <drm/drm_print.h>
29#include <drm/drm_drv.h>
30#include <drm/drm_plane.h>
31
32#include "drm_crtc_internal.h"
33
34/**
35 * DOC: overview
36 *
37 * When userspace signals the &DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE i …
Kernel error code return lines 121–131
121:39… t,
122 ARRAY_SIZE(drm_colorop_type_enum_list));
123
124 if (!prop)
125 return -ENOMEM;
126
127 colorop->type_property = prop;
⋯4 lines
Uppercase identifier contains PASSWORD or PASS lines 135–142
135:5… op = drm_property_create_bool(dev, DRM_MODE_PROP_ATOMIC,
136 "BYPASS");
137 if (!prop)
138 return -ENOMEM;
⋯4 lines
Removes an entry from a linked list lines 166–184
166:32… op->dev;
167 struct drm_mode_config *config = &dev->mode_config;
168
169 list_del(&colorop->head);
170 config->num_colorop--;
171
⋯5 lines
177 kfree(colorop->state);
178}
179EXPORT_SYMBOL(drm_colorop_cleanup);
180
181/**
182 * drm_colorop_pipeline_destroy - Helper for color pipeline destruction
183 *
184 * @dev: - The drm_device …
Copies bytes with native memcpy lines 437–448
437:65… rm_colorop *colorop,
438 struct drm_colorop_state *state)
439{
440 memcpy(state, colorop->state, sizeof(*state));
441
442 if (state->data)
⋯6 lines

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.