Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7198803ybi; Mon, 22 Jul 2019 08:44:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcogNfpJuFIcTrtk2MpK2Q5eRAiHig6nQN2UnhB54kCwo1wewW4gHCaZ7FbIaAg7god2+f X-Received: by 2002:a17:902:9a84:: with SMTP id w4mr74128523plp.160.1563810262179; Mon, 22 Jul 2019 08:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563810262; cv=none; d=google.com; s=arc-20160816; b=HoUIS1WQ0gaIysYVPbWDtwj69IPRgygDxFzWwZSXSo2kiXjh51AuJj6LbFx1YX5OV1 Dhnl0UpK9Ffkmp/5gqKC1+8jKWsajp1cnTCSULs6wz3YCXug5Vf/IBO8U2J9KFF81lKU o9SZ0U9GrhZDJYgexPUyFV0VdXh8ACqmfi/9fa7wmIz4+RcXjW9E4AODZCnGCQ6ZeDLz lhIsA5c0LI5+B2tpBWMalKsh/9VsBgFrZ9LiXA5UiK6gUhWhK5HD63nMI9+QuTt4TYKb YhNN27IzScjS4JCtJLNASpOWogUfOkfp3mmx6BDxTs9zNDk6nXBot/UxwJa5ljp6advy kvWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wx9SyeoJ6bopQ0LK9VAuarkTsmpo5gRoZq5M1GPeLrc=; b=FbxESC8fDl00oBLrfTDUrJmprzOCMOtvrZIip9v2Fma8TSQKtLs9sd7Uy7xu50+VtJ 6UWt+k7wTW18Q1vCOvtyxpb1B5xKy/GJu7uJdcc+Lv8SkwGZCgg9z1/Hl7/AYqWbz0PM ttmUdgMWOXxuoK9n8DdehNxYdAjHTmLZe6e2g5aap9B7L68e87fDHm0wB1QGeKBWi2wG nT90A6z+iYA2l+9QDP77XwbQYf3Ykca+ypEPDvdu9JMmNwfuzIxxz7m+vAYtu/sl+NL1 VHLXdujpvaas1x0ueSXYIrvAXFt0Bpoao3EVN2dhMlG6rPN2lGPYMzRRGjZxY/BfMK6K gtMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bobcopeland-com.20150623.gappssmtp.com header.s=20150623 header.b=Wcpa+zd6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si10012910plc.425.2019.07.22.08.44.06; Mon, 22 Jul 2019 08:44:22 -0700 (PDT) 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; dkim=pass header.i=@bobcopeland-com.20150623.gappssmtp.com header.s=20150623 header.b=Wcpa+zd6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbfGVNPR (ORCPT + 99 others); Mon, 22 Jul 2019 09:15:17 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:36744 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728059AbfGVNPR (ORCPT ); Mon, 22 Jul 2019 09:15:17 -0400 Received: by mail-io1-f66.google.com with SMTP id o9so73837324iom.3 for ; Mon, 22 Jul 2019 06:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobcopeland-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wx9SyeoJ6bopQ0LK9VAuarkTsmpo5gRoZq5M1GPeLrc=; b=Wcpa+zd6tDcQ0dGSUugww0xoYTTyNeM9+WiwSTZpdRPJmwcy0nvkR9fK17ChRr4LAA btyuKhkE3X0jcMpTt4d/jYCpKkj6EaHnSsV3bOoLRbHtpwOACVjpvjaiBcgAsxJUaziU ScJMY+NztDCZZIxKwU1qmHcxjdsgcJjJC1fdQe88uGYpdnQY3SH1GPA/pWbnzZRpA/Vu 6PMyUO9qQLCHp8vUDaQ4L1mvNasRkujRB7zrnREM/eUXU252h2rS5ISf/GJAfWvdFK8r XavWl5Ny5XJT+IBLPW/TFLyAsWKPy3le7VSZBjtgL3Rc9tvbWrtlJPOkrQcRA4/nzFjL 9u7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wx9SyeoJ6bopQ0LK9VAuarkTsmpo5gRoZq5M1GPeLrc=; b=LM69hA0CJ3j50a4/u1bAo2vD+oxffvhV3251CcRGkyRnf0vVOXIpXtrkzonDTvR60D 76W8kKaaDB2AdgX3iQHwAvQiGowUyBz0mFCLhfnqWfD4N5Zv2II5cQMarKWJZj1AI2ua ART3cLW+LCVmI57HcETnpyL1Ke1gNNX8SW4RthJ9y4bIZLPT4Gg/frU9//tW1qyRSUfp No5oQD9xFvOThpKW+6s8y+QoqLzbKia1zIt0ESSD+HL/McKVTvyCa6iYtbDHeyErZTHp Ql0L33Vi80ebDx195rLYyOrtsc3IbTTCYnynKTY8TWB4YefOQTgT5imIj8Y/ctwo+cv7 34+w== X-Gm-Message-State: APjAAAUI3XS9vv+mQ9vKoxwGB9UzJKlyw2K0bt9oxSUZqWqUr2dz/cpB LgRT/I+OVVvoinRYb2FtTy0= X-Received: by 2002:a02:b016:: with SMTP id p22mr26829456jah.121.1563801316371; Mon, 22 Jul 2019 06:15:16 -0700 (PDT) Received: from hash ([2607:fea8:5ac0:1dd8:230:48ff:fe9d:9c89]) by smtp.gmail.com with ESMTPSA id l5sm70493781ioq.83.2019.07.22.06.15.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 06:15:15 -0700 (PDT) Received: from bob by hash with local (Exim 4.92) (envelope-from ) id 1hpY9r-0005EC-6z; Mon, 22 Jul 2019 09:15:15 -0400 Date: Mon, 22 Jul 2019 09:15:15 -0400 From: Bob Copeland To: Hariprasad Kelam Cc: linux-karma-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/omfs: make use of kmemdup Message-ID: <20190722131515.GB5252@localhost> References: <20190721112326.GA5927@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190721112326.GA5927@hari-Inspiron-1545> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 21, 2019 at 04:53:27PM +0530, Hariprasad Kelam wrote: > kmalloc + memcpy can be replaced with kmemdup. > > fix below issue reported by coccicheck > ./fs/omfs/inode.c:366:9-16: WARNING opportunity for kmemdup > > Signed-off-by: Hariprasad Kelam Thanks! Acked-by: Bob Copeland -- Bob Copeland %% https://bobcopeland.com/