Module Name: src Committed By: riastradh Date: Fri Aug 30 03:34:37 UTC 2019
Modified Files: src/sys/external/bsd/drm/dist/shared-core: radeon_cs.c Log Message: Delete dead-as-a-doornail-in-a-dead-horse branch. If dev_priv is null here, you're hosed to begin with, so the apparent null pointer dereference in this branch is moot; also this is the old drm code that we should maybe just delete altogether... Potential null pointer dereference reported by Dr Silvio Cesare of InfoSect. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c diff -u src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c:1.2 src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c:1.3 --- src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c:1.2 Thu Oct 17 21:15:18 2013 +++ src/sys/external/bsd/drm/dist/shared-core/radeon_cs.c Fri Aug 30 03:34:37 2019 @@ -148,11 +148,6 @@ int radeon_cs_ioctl(struct drm_device *d cs_id = 0; cs->cs_id = cs_id; - if (dev_priv == NULL) { - DRM_ERROR("called with no initialization\n"); - DRM_SPINUNLOCK(&dev_priv->cs.cs_mutex); - return -EINVAL; - } if (!cs->num_chunks) { DRM_SPINUNLOCK(&dev_priv->cs.cs_mutex); return 0;