From: Keller, Jacob E <jacob.e.keller@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] fm10k: use ethtool_rxfh_indir_default for default redirection table
Date: Wed, 6 Apr 2016 21:57:27 +0000 [thread overview]
Message-ID: <1459979845.17828.10.camel@intel.com> (raw)
In-Reply-To: <20160406183703.GA27407@mwanda>
On Wed, 2016-04-06 at 21:37 +0300, Dan Carpenter wrote:
> Hello Jacob Keller,
>
> The patch 0ea7fae44094: "fm10k: use ethtool_rxfh_indir_default for
> default redirection table" from Feb 16, 2016, leads to the following
> static checker warning:
>
> drivers/net/ethernet/intel/fm10k/fm10k_main.c:1977
> fm10k_init_reta()
> error: potential null dereference 'indir'.??(kcalloc returns
> null)
>
> drivers/net/ethernet/intel/fm10k/fm10k_main.c
> ? 1970??
> ? 1971??repopulate_reta:
> ? 1972??????????indir = kcalloc(fm10k_get_reta_size(netdev),
> ? 1973??????????????????????????sizeof(indir[0]), GFP_KERNEL);
> ? 1974??
> ? 1975??????????/* generate redirection table using the default
> kernel policy */
> ? 1976??????????for (i = 0; i < fm10k_get_reta_size(netdev); i++)
> ? 1977??????????????????indir[i] = ethtool_rxfh_indir_default(i,
> rss_i);
> ? 1978??
> ? 1979??????????fm10k_write_reta(interface, indir);
> ? 1980??
> ? 1981??????????kfree(indir);
> ? 1982??}
>
>
Oops! Will fix in a v2. Which tool is this caused by?
Thanks,
Jake
> regards,
> dan carpenter
prev parent reply other threads:[~2016-04-06 21:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 18:37 [Intel-wired-lan] fm10k: use ethtool_rxfh_indir_default for default redirection table Dan Carpenter
2016-04-06 21:57 ` Keller, Jacob E [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459979845.17828.10.camel@intel.com \
--to=jacob.e.keller@intel.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox