]> Git Repo - linux.git/commit
mm: cma: Don't crash on allocation if CMA area can't be activated
authorLaurent Pinchart <[email protected]>
Fri, 24 Oct 2014 10:18:39 +0000 (13:18 +0300)
committerMarek Szyprowski <[email protected]>
Mon, 27 Oct 2014 12:00:54 +0000 (13:00 +0100)
commitf022d8cb7ec70fe8edd56383d876001317ee76b1
tree3d45621da991a4b2b567c4447851fe6f7b5e87c3
parentcac7f2429872d3733dc3f9915857b1691da2eb2f
mm: cma: Don't crash on allocation if CMA area can't be activated

If activation of the CMA area fails its mutex won't be initialized,
leading to an oops at allocation time when trying to lock the mutex. Fix
this by setting the cma area count field to 0 when activation fails,
leading to allocation returning NULL immediately.

Cc: <[email protected]> # v3.17
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
mm/cma.c
This page took 0.07279 seconds and 4 git commands to generate.