On 2/20/2018 2:11 PM, Joe Moriarty wrote:
The following patch(s) are bugs found by the static compiler
'Parfait'. Care was taken to make sure false positive results
were removed from this patchset.
Parfait Overview
https://labs.oracle.com/pls/apex/f
2:
- Split original v1 patch into 4 separate patches per request
from Jani Nikula
- Fixed system hang during boot up on test machine.
v3:
- Made changes requested by Daniel Vetter.
Joe Moriarty (2):
drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
drm: NULL pointer derefer
with BUG() from drm_minor_get_slot().
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 9acc1e157813..a1b9338736e3 100644
--- a
und when trying to find the struct crtc
from it's assigned index given in drm_crtc_init_with_planes().
3 return checks for NULL where added with a call to
WARN_ON(!crtc).
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_vblank.c | 9 +
1 file ch
On 2/19/2018 8:32 AM, Daniel Vetter wrote:
On Mon, Feb 12, 2018 at 02:51:44PM -0500, Joe Moriarty wrote:
The Parfait (version 2.1.0) static code analysis tool found the
following NULL pointer derefernce problem.
- drivers/gpu/drm/drm_vblank.c
Null pointer checks were added to return values
On 2/19/2018 6:57 AM, Daniel Vetter wrote:
On Mon, Feb 12, 2018 at 02:51:41PM -0500, Joe Moriarty wrote:
The Parfait (version 2.1.0) static code analysis tool found the
following NULL pointer dereference problem.
- drivers/gpu/drm/drm_drv.c
Any calls to drm_minor_get_slot() could result in the
und when trying to find the struct crtc
from it's assigned index given in drm_crtc_init_with_planes().
3 return checks for NULL where added.
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_vblank.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(
to allocate memory for port->mstb.
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_dp_mst_topology.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c
b/drivers/gpu/drm/drm_dp_mst_topology.c
. A check for this added right after
the call to drm_cvt_mode() in this particular area of code.
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_edid.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
for pointer manipulation (drm_minor_get_slot()
and drm_minor_set_minor()) along with checks for valid pointers for
struct drm_device variables throughout this module.
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_drv.c | 38
2:
- Split original v1 patch into 4 separate patches per request
from Jani Nikula
- Fixed system hang during boot up on test machine.
Joe Moriarty (4):
drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
drm: NU
On 2/9/2018 7:17 AM, Jani Nikula wrote:
On Thu, 08 Feb 2018, Joe Moriarty wrote:
The Parfait (version 2.1.0) static code analysis tool found multiple NULL
pointer derefernce problems.
Thanks for the patch. Multiple problems requires multiple patches to fix
them, one patch per problem. Please
The following patch(s) are bugs found by the static compiler
'Parfait'. Care was taken to make sure false positive results
were removed from this patchset.
Parfait Overview
https://labs.oracle.com/pls/apex/f?p=labs:49:P49_PROJECT_ID:13
Joe Moriarty (1):
drm
ruct crtc
from it's assigned index given in drm_crtc_init_with_planes().
3 return checks for NULL where added.
Signed-off-by: Joe Moriarty
Reviewed-by: Steven Sistare
---
drivers/gpu/drm/drm_dp_mst_topology.c | 8 +---
drivers/gpu/drm/drm_drv.c
14 matches
Mail list logo