]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: remove BUG_ON from feature string building
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 21 Oct 2015 23:47:04 +0000 (19:47 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:33:18 +0000 (08:33 -0800)
commit6483ad36c7cdfddeb11e576f4c767e903e6a033e
tree356a0c9b4811e76d03722ddf28d226f7724509f3
parentfda4785e561c9d4c1d5f2c4eb7791145c62ef351
i40e: remove BUG_ON from feature string building

Orabug: 22342532

There's really no reason to kill the kernel thread just because of a
little info string. This reworks the code to use snprintf's limiting to
assure that the string is never too long, and WARN_ON to still put out
a warning that we might want to look at the feature list length.

Prompted by a recent Linus diatribe.

Change-ID: If52ba5ca1c2344d8bf454a31bbb805eb5d2c5802
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 7fd89545f3374a061669a279ae0e084b0ddbb53d)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c