Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683147

Re: [PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup

From Alan Cox <alan@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup
Date 2017-07-07 14:00 +0200
Message-ID <u0A5r-3x2-7@gated-at.bofh.it> (permalink)
References <u0A5r-3x2-1@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


On Fri, 2017-07-07 at 17:20 +0530, Hari Prasath wrote:
> kmemdup can be used to replace kmalloc followed by a memcpy.This was
> pointed out by the coccinelle tool.

And kstrdup could do the job even better I think ?

Alan

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup Hari Prasath <gehariprasath@gmail.com> - 2017-07-07 14:00 +0200
  Re: [PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup Alan Cox <alan@linux.intel.com> - 2017-07-07 14:00 +0200
    Re: [PATCH] staging: atomisp: replace kmalloc & memcpy with kmemdup hari prasath <gehariprasath@gmail.com> - 2017-07-07 15:30 +0200

csiph-web