Bug 87576

Summary: Null dereference in npramin_finit
Product: Mesa Reporter: Bob Gleitsmann <rjgleits>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: fix null dereference oops in nouveau.ko

Description Bob Gleitsmann 2014-12-22 06:07:26 UTC
Created attachment 111144 [details]
fix null dereference oops in nouveau.ko

This problem manifests when chipset is < nv50. In this case, pramin_init returns NULL. mthd->data is then set to this value in shadow_method. Later, mthd-> data is passed as a parameter to pramin_fini. The result is a kernel oops. The attached patch takes care of that.

Best Wishes,

Bob Gleitsmann
Comment 1 Ilia Mirkin 2014-12-22 06:15:59 UTC

*** This bug has been marked as a duplicate of bug 87554 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.