Re: omfs: make use of kmemdup

2019-09-16 Thread Saiyam Doshi
On Sat, Sep 14, 2019 at 08:24:37AM +0200, Markus Elfring wrote: > I suggest to take another look at a similar patch. > > fs/omfs: make use of kmemdup > https://lore.kernel.org/r/20190721112326.GA5927@hari-Inspiron-1545/ > https://lore.kernel.org/patchwork/patch/1102482/ > htt

Re: omfs: make use of kmemdup

2019-09-13 Thread Markus Elfring
> Replace call to kmalloc followed by memcpy with a direct call > to kmemdup to achieve same functionality. I suggest to take another look at a similar patch. fs/omfs: make use of kmemdup https://lore.kernel.org/r/20190721112326.GA5927@hari-Inspiron-1545/ https://lore.kernel.org/patchwork

[PATCH] omfs: make use of kmemdup

2019-09-13 Thread Saiyam Doshi
Replace call to kmalloc followed by memcpy with a direct call to kmemdup to achieve same functionality. Signed-off-by: Saiyam Doshi --- fs/omfs/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index b76ec6b88ded..788b41096962 1006

Re: [PATCH] fs/omfs: make use of kmemdup

2019-07-22 Thread Bob Copeland
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 -- B

[PATCH] fs/omfs: make use of kmemdup

2019-07-21 Thread Hariprasad Kelam
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 --- fs/omfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/i