Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752121AbbKIJQr (ORCPT ); Mon, 9 Nov 2015 04:16:47 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35337 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbbKIJQn (ORCPT ); Mon, 9 Nov 2015 04:16:43 -0500 From: Saurabh Sengar To: airlied@linux.ie, bskeggs@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Saurabh Sengar Subject: [PATCH] drm/nouveau/abi16: add missing mutex_unlock() Date: Mon, 9 Nov 2015 14:46:26 +0530 Message-Id: <1447060586-23431-1-git-send-email-saurabh.truth@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 35 adding missing mutex_unlock() Signed-off-by: Saurabh Sengar --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/