]> git.baikalelectronics.ru Git - kernel.git/commit
Staging:Android:ion - Fix for memory leak if ion device registration get failed.
authorShailendra Verma <shailendra.capricorn@gmail.com>
Tue, 19 May 2015 14:59:00 +0000 (20:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:27:13 +0000 (13:27 -0700)
commitfc41461ad9f25ed795113e1e43ffec1cd00dafa0
treeac211ba44585ab8863c81e0c652cbcd64b61a7b2
parentf8c7be02d86c402a39f0cbe0f3c814b83b948625
Staging:Android:ion - Fix for memory leak if ion device registration get failed.

Fix to avoid possible memory leak if the ion device registration
get failed.Free the allocated device creation memory before return
in case the ion device registration get failed.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c