video: tegra: nvmap: fix nvmap_page_pool_init error path
nvmap_page_pool_init calls nvmap_page_pool_fini at every
failure point. In case shrinker is not initialized, its
list node is not initialized as well.
Operating on an uninitialized list node can cause NULL
pointer exception. Preventing the same.
Bug
1526131
Change-Id: I6c4cb314b4a93c7ed8d4cb03e4e0c7d2b8a1e906
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/456089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>