Skip to content
Commit a56d092a authored by Rohit kumar's avatar Rohit kumar Committed by Greg Kroah-Hartman
Browse files

staging: ion: Fix error handling in ion_buffer_create



This patch fixes error handling case when buffer->pages allocation
fails. Also, it removes unreachable code of checking ret variable
although it is not updated.

Signed-off-by: default avatarRohit kumar <rohit.kr@samsung.com>
Reviewed-by: default avatarLaura Abbott <labbott@redhat.com>
Suggested-by: default avatarPintu Kumar <pintu.k@samsung.com>
Reviewed-by: default avatarPintu Kumar <pintu.k@samsung.com>
Reviewed-by: default avatarGioh Kim <gioh.kim@lge.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc719854
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment