mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/nouveau/abi16: add missing mutex_unlock()
@ 2015-11-09  9:16 Saurabh Sengar
  0 siblings, 0 replies; only message in thread
From: Saurabh Sengar @ 2015-11-09  9:16 UTC (permalink / raw)
  To: airlied, bskeggs, dri-devel, linux-kernel; +Cc: Saurabh Sengar

adding missing mutex_unlock()

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
---
 drivers/gpu/drm/nouveau/nouveau_abi16.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c b/drivers/gpu/drm/nouveau/nouveau_abi16.c
index d336c22..280bd8e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_abi16.c
+++ b/drivers/gpu/drm/nouveau/nouveau_abi16.c
@@ -54,11 +54,11 @@ nouveau_abi16_get(struct drm_file *file_priv, struct drm_device *dev)
 			if (nvif_device_init(&cli->base.object,
 					     NOUVEAU_ABI16_DEVICE, NV_DEVICE,
 					     &args, sizeof(args),
-					     &abi16->device) == 0)
-				return cli->abi16;
+					     &abi16->device)) {
 
-			kfree(cli->abi16);
-			cli->abi16 = NULL;
+				kfree(cli->abi16);
+				cli->abi16 = NULL;
+			}
 		}
 
 		mutex_unlock(&cli->mutex);
-- 
1.9.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-09  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09  9:16 [PATCH] drm/nouveau/abi16: add missing mutex_unlock() Saurabh Sengar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®