drm/msm/gpu: Fix a couple memory leaks in debugfs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 13 Oct 2018 10:28:06 +0000 (13:28 +0300)
committerSean Paul <seanpaul@chromium.org>
Fri, 30 Nov 2018 16:34:44 +0000 (11:34 -0500)
commit51270de91412b819f654b849db3bf92dac0a0855
treee5adc780902f335463812618d4cb8c35e0954217
parent482f96324a4e08818db7d75bb12beaaea6c9561d
drm/msm/gpu: Fix a couple memory leaks in debugfs

The msm_gpu_open() function should free "show_priv" on error or it
causes static checker warnings.

Fixes: 4f776f4511c7 ("drm/msm/gpu: Convert the GPU show function to use the GPU state")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/msm/msm_debugfs.c