Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3948845rwb; Tue, 16 Aug 2022 11:28:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6keTkwyhl0LKTiSqUXTFUkAFiEBgPvC95q37o6NWcdjIfcDdozcrt/GVxktPPj8KkaYhqE X-Received: by 2002:a17:906:8474:b0:730:7f7f:e49 with SMTP id hx20-20020a170906847400b007307f7f0e49mr14077026ejc.164.1660674498345; Tue, 16 Aug 2022 11:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660674498; cv=none; d=google.com; s=arc-20160816; b=gYBCoNP2LMPJP6Aev9RTplYmGgtZew3DFYWVc64bJRCaNCH+PqUCB3UzBgHb798Qtb yNlMGVcM/07qs3+p5PmQK8LONoX0GdRnNjZEVAD31odagzJTZT+U2Td5Su/BXOT9aHFX 1dDYpDqFXMOPv0M1LHghUS1iVZ5ry7x2IOo607wN7F4luf7kvHLaCMGK2vgc7rT5Ur2p gqffNKEVPGXLDMv6Tc6qjjRc0KmpPvsGhHRPU9HUNCeEVVql/SpPBUVQPSuzyZ2MiRTp flUsXaGty02dvlyY81tZgbE7VwDdTfTNnNV6YkizNb+gmfFHxIxq/ecrPM+9Ih7rhZVj OpYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=dq/Vn6AWAPWj9xwPdiEt3ong1Anosq3MOAJTzQGxHn0=; b=PsNHSzzvuIxWPw4dG8MkLM8NXK6x1dxFefLeblxD7vN9mlfmUYhe+BjoMum9gO/Tjj f5M7b0bKxKa0fR70cfxV2+dYVyOj6ZUZgLyr5NT62BAF5vP+dLjuWa/jfGAgiS9oTll3 NZVybXpmsp0JHzYjZlQ0izjN5nX24Z3SsW8uEGZq/C+rybtvaphliZcvVrXmIM9KKTDo wHlfxF4YBPwKC4SQvQkNYPDIjva83rikzuXpPhySme8vY/yOW+QnEo2J9tSGRYJrOThD ktp8PkOk/fC7w9KuwI6DJgRMU8v78eq3ZGXRC8UaeEfvbPd8uAH50GbXDXBcC91ddKxK IJYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056402350800b0043d99f453f1si11052740edd.64.2022.08.16.11.27.51; Tue, 16 Aug 2022 11:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236768AbiHPSBu (ORCPT + 99 others); Tue, 16 Aug 2022 14:01:50 -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 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; -- 2.30.2