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


Groups > linux.kernel > #1695266

Re: [PATCH] netvsc: fix ptr_ret.cocci warnings

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] netvsc: fix ptr_ret.cocci warnings
Date 2017-07-25 01:40 +0200
Message-ID <u6V7b-3vi-15@gated-at.bofh.it> (permalink)
References <u5Ljz-8q5-3@gated-at.bofh.it> <u6UXv-3qM-5@gated-at.bofh.it> <u6UXw-3qM-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Stephen Hemminger <stephen@networkplumber.org>
Date: Mon, 24 Jul 2017 16:21:57 -0700

> On Mon, 24 Jul 2017 16:20:28 -0700 (PDT)
> David Miller <davem@davemloft.net> wrote:
> 
>> From: kbuild test robot <fengguang.wu@intel.com>
>> Date: Sat, 22 Jul 2017 02:54:43 +0800
>> 
>> > drivers/net/hyperv/netvsc_drv.c:737:8-14: WARNING: PTR_ERR_OR_ZERO can be used
>> > 
>> > 
>> >  Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>> > 
>> > Generated by: scripts/coccinelle/api/ptr_ret.cocci
>> > 
>> > Fixes: 9749fed5d43d ("netvsc: use ERR_PTR to avoid dereference issues")
>> > CC: stephen hemminger <stephen@networkplumber.org>
>> > Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>  
>> 
>> Applied to net-next.
> 
> That function is gone in the later patches.

I guess I'll deal with that when I apply that series or do a merge
then :-)

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


Thread

[PATCH] netvsc: fix ptr_ret.cocci warnings kbuild test robot <fengguang.wu@intel.com> - 2017-07-21 21:00 +0200
  Re: [PATCH] netvsc: fix ptr_ret.cocci warnings David Miller <davem@davemloft.net> - 2017-07-25 01:30 +0200
    Re: [PATCH] netvsc: fix ptr_ret.cocci warnings Stephen Hemminger <stephen@networkplumber.org> - 2017-07-25 01:30 +0200
      Re: [PATCH] netvsc: fix ptr_ret.cocci warnings David Miller <davem@davemloft.net> - 2017-07-25 01:40 +0200

csiph-web