Received: by 10.223.185.116 with SMTP id b49csp2765742wrg; Mon, 5 Mar 2018 08:20:52 -0800 (PST) X-Google-Smtp-Source: AG47ELsFwbvticyOJCG8T1Q9dTZwVNBtjEZxfaJXABkXUs8U1Imp9PkagkZ+CiRuCdH08HwWjUAr X-Received: by 2002:a17:902:4103:: with SMTP id e3-v6mr9808198pld.172.1520266852535; Mon, 05 Mar 2018 08:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520266852; cv=none; d=google.com; s=arc-20160816; b=Sa5IUVInlha8RAv+0+1ZkxllrHjgb5xLts+QfVYWOqS922F0HNzR0M6DIwjLf9yiid NziKy3MtNokWaOe0rP+Uw6Jk1w5FzOTgXjX5FdcORne1UskI6jHr31QRZI+G4AnlSplN VYQAA4mySjcKZcjQKOlUEP8dWCaKFMVXQAHXq40bMIquVEWJZjYNtPJfA10augWPH5RN TPGFymR2Zeozew7jNcA4txwxvkiJWBXQ3HGOI1L9pPAXYOga4J8ItMLsq9VZeuj52nP/ wv0zNpK4C0teQwEGDefencOVlfgGErK/xUfj24TXSKQvCOpNdhWvnsu/JZ4ITajLEA9U rTJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=sX0Vxz1FDbN/B8PDRAzr2kHn5gDmzotRefHPSNDiBYA=; b=gAJKgZlC0bfPcNYQTRFTOhPJwae3P2uPliwz+ygGGo28RBn8k1rzDM/GLp61yFOMuT taIC57PQNKhQw98V7D/U+/VBIpPFixT5YQVhmQH4Iqe/KUMpZFqx64R/Bj8VTB4fHach bXUmxc/5o+SRfXe0QLp2xJ6yZ1rGL3kBFNYizDm4PvFnX1Zv1oMzim8IWHd4dMkGDhL4 74XZZYUkMJqjxeRglbDI7da7ODSHMzKRMY8IZ5TznWBiBi4RQdksealzHoiWXOflCuaP tUBHAD+xnNc8hLKqS6TxgTHBku2/NUCZUZZqD5MLFun1PRttxEJVv9fgx4nePVZjhgaB e4/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si10467360pfg.246.2018.03.05.08.20.38; Mon, 05 Mar 2018 08:20:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752074AbeCEQTi (ORCPT + 99 others); Mon, 5 Mar 2018 11:19:38 -0500 Received: from mout.web.de ([217.72.192.78]:48191 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbeCEQTf (ORCPT ); Mon, 5 Mar 2018 11:19:35 -0500 Received: from [192.168.1.2] ([92.228.188.109]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lrs70-1ehM251GVq-013bQA; Mon, 05 Mar 2018 17:19:27 +0100 To: kernel-janitors@vger.kernel.org, Al Viro , Arnd Bergmann , Greg Kroah-Hartman , George Zhang Cc: LKML , Andy King , Dmitry Torokhov From: SF Markus Elfring Subject: [PATCH 0/2] VMCI: Adjustments for three function implementations Message-ID: <66411a1a-fd12-dc31-fc2e-800ff6cea1ed@users.sourceforge.net> Date: Mon, 5 Mar 2018 17:19:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:VSv8qMdeS6LahgsiE/NfwtlYIr7vqHRkIVc58fbbj7G8wHuFJZh KY3UC1zhNSl5UAO1mHS0r7Qf9SsKo8NgP3JNQgpGNp16wYl4FAF0HjTOx+IAL85r9FcDQJS azo+/mv5TzlzVDlPjJl4hgHD07tUDxrEjbC9+AYtczT13ywd/pZWhrUp2MGtbHSkC858ufA wTfTDZ4mircIeXGT3OBnA== X-UI-Out-Filterresults: notjunk:1;V01:K0:HDNTndxFNjA=:Z1ABxASDyIXUdeYVQfg/y9 u+NmR8AtLiLeto4MN84nFlhJbRoumC2m9MnSmw6LoeqWBilkL4Z8U/Mf0QhbNWscJAUFgdBXz qrZkpsqMKNLVYdc6icaTjjgJy5Ce7cgizrVeFahGkX71xAeAripuOP+yWBp4dXsx5gm+FfQQ/ dbkGhnmm5C56AVMfxaDUx8Rke0C84XWsYRePS19kEl0XTZWBWZvS+2Vdh+oepvNHulEP4mKoi 4PywrHC86UaPcDXY5yICFAL/MqyWT0QRt3zgkIZrcMP8pYBW/E2/t3/c+Cg+WjB44Cu7R39or MBbLuhiSw3PgJlCULoOcJvgl83nfIveehg7AMraKk9E4gRZNQyjBgBeQA6oguA5QmZpMOrwfZ fDvo2FGdEsqWyqDVt/1xJbQuGigOFfWMIardafTa1FoyZJIXg/Y84DRcJWMYWWu3vGNU37oz7 yGpxcKzIAt7aDmg/MHok+Keb6UkShAfEQIyoyw6GEdXQZWj5iT44tKnTB1hk2eKavhYHtDGHR /LqjYqTFvkYXGfzQt8vuLn9v89Y0D7zyy5lYfiOFb3eDmV8exX+ihEmQSuO14m40NnpAKFIDs dYlzj/y56EaninGAR5OZa9Vg+5SpVbISrzlMikFr1b+H1k7xUdKI7yjuuUwdHRjvFt5pi0FXY koSQWt/GFsKaZUdD4viJW2o2e0nRgB/Xn07JdWtq2F6/RzyEL0ssFskJ4MPko2HU1YSpRuFHi TvgnKpcXN2r/OYWbeitj2UBD1/tnMD2JQsv84bf5g2fo2+ut1q/0HyZzZOyROjZ53Bbxzge6W FZX5+BNIjNR1afK+qNXqSWZ41c2W1uV+M8HYYLzh0rnl4tVUmc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Mon, 5 Mar 2018 17:12:34 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use memdup_user() rather than duplicating its implementation Improve a size determination in two functions drivers/misc/vmw_vmci/vmci_context.c | 2 +- drivers/misc/vmw_vmci/vmci_host.c | 21 +++++---------------- 2 files changed, 6 insertions(+), 17 deletions(-) -- 2.16.2