From patchwork Tue Aug 16 18:01:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Gao X-Patchwork-Id: 12945165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 643E5C25B0E for ; Tue, 16 Aug 2022 18:01:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235770AbiHPSBs (ORCPT ); Tue, 16 Aug 2022 14:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236280AbiHPSBs (ORCPT ); Tue, 16 Aug 2022 14:01:48 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9189A832F2; Tue, 16 Aug 2022 11:01:45 -0700 (PDT) X-QQ-mid: bizesmtp88t1660672884t597l1k2 Received: from harry-jrlc.. ( [182.148.12.144]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Aug 2022 02:01:12 +0800 (CST) X-QQ-SSF: 0100000000000060D000B00A0000020 X-QQ-FEAT: 7L1V3dHhUFMh2NTXhq053RQm9at6l8q/2ycR4yxNdMJftm3mj9Jly9K7yivRd iLJ4k/eq41tID1yIYaDqUkPq1CF+Jdj8bKua422fur/yXFDPRcPFn3BX5HXdetF7Rma2hUH wgG9yN84vniTqaiyoHkztEuwaB87xgazBbdNzykhv2hzo2QX6Verh5mJc5S2mCePHGyH9w6 mp+8KwZYolp2BLbJ/y2X0W8VCAFar+mw1eaME5OThSckJTAFmFM39aNTcEb/oTuRSVA47R3 VEukSayidimeSO1eRDE9aDPzwb5ckR4DTAxUi/PMEvUKJwVwaeJN0ZUKUzbgdW3/3p1ltsU Ygvo6aCHr3WtgK/DNgfUM1ae+F1qg6r67hqDCRYuMB6t6nq/L4QJ/5tEd1qag== X-QQ-GoodBg: 0 From: Xin Gao To: dhowells@redhat.com, jarkko@kernel.org Cc: jmorris@namei.org, serge@hallyn.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] KEYS: Variable type completion Date: Wed, 17 Aug 2022 02:01:10 +0800 Message-Id: <20220816180110.8625-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org 'unsigned int' is better than 'unsigned'. Signed-off-by: Xin Gao --- security/keys/keyctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 96a92a645216..4564505e7594 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c @@ -44,7 +44,7 @@ static const unsigned char keyrings_capabilities[2] = { static int key_get_type_from_user(char *type, const char __user *_type, - unsigned len) + unsigned int len) { int ret;