Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1695261
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] netvsc: fix ptr_ret.cocci warnings |
| Date | 2017-07-25 01:30 +0200 |
| Message-ID | <u6UXv-3qM-5@gated-at.bofh.it> (permalink) |
| References | <u5Ljz-8q5-5@gated-at.bofh.it> <u5Ljz-8q5-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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