diff options
author | Shannon Nelson <shannon.nelson@intel.com> | 2015-10-21 19:47:04 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-11-25 10:05:55 -0800 |
commit | 7fd89545f3374a061669a279ae0e084b0ddbb53d (patch) | |
tree | d05b5e231bd830b0b1d5f1cb8dc960d8076bcdbd /net/tipc | |
parent | b875f99b4cb454e0aa1e68d2d8792112a1e07050 (diff) |
i40e: remove BUG_ON from feature string building
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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions