Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756946AbbFQOTg (ORCPT ); Wed, 17 Jun 2015 10:19:36 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60507 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756756AbbFQOTM (ORCPT ); Wed, 17 Jun 2015 10:19:12 -0400 X-Sasl-enc: dk6HviAeZG7JmpIPcOj7CSfSQ7rRjp4kvZQ9IQiZIaG6 1434550750 From: Sergei Zviagintsev To: Greg Kroah-Hartman , Daniel Mack , David Herrmann , Djalal Harouni Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Sergei Zviagintsev Subject: [PATCH] selftests/kdbus: handle cap_get_proc() error properly Date: Wed, 17 Jun 2015 17:18:13 +0300 Message-Id: <1434550697-24785-1-git-send-email-sergei@s15v.net> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 28 Fix typo in checking error value of cap_get_proc(): cap -> caps Signed-off-by: Sergei Zviagintsev --- tools/testing/selftests/kdbus/kdbus-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kdbus/kdbus-util.c b/tools/testing/selftests/kdbus/kdbus-util.c index 1e267d585a14..a3e49b04f3a7 100644 --- a/tools/testing/selftests/kdbus/kdbus-util.c +++ b/tools/testing/selftests/kdbus/kdbus-util.c @@ -1547,7 +1547,7 @@ int test_is_capable(int cap, ...) cap_t caps; caps = cap_get_proc(); - if (!cap) { + if (!caps) { ret = -errno; kdbus_printf("error cap_get_proc(): %d (%m)\n", ret); return ret; -- 1.8.3.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/