Commit 7fd8954
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>1 parent b875f99 commit 7fd8954
1 file changed
+18
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10111 | 10111 | | |
10112 | 10112 | | |
10113 | 10113 | | |
| 10114 | + | |
10114 | 10115 | | |
10115 | 10116 | | |
10116 | 10117 | | |
10117 | 10118 | | |
| 10119 | + | |
10118 | 10120 | | |
10119 | 10121 | | |
10120 | 10122 | | |
| |||
10124 | 10126 | | |
10125 | 10127 | | |
10126 | 10128 | | |
10127 | | - | |
| 10129 | + | |
10128 | 10130 | | |
10129 | | - | |
| 10131 | + | |
10130 | 10132 | | |
10131 | | - | |
10132 | | - | |
10133 | | - | |
10134 | | - | |
| 10133 | + | |
| 10134 | + | |
| 10135 | + | |
| 10136 | + | |
10135 | 10137 | | |
10136 | 10138 | | |
10137 | | - | |
| 10139 | + | |
10138 | 10140 | | |
10139 | | - | |
| 10141 | + | |
10140 | 10142 | | |
10141 | | - | |
10142 | | - | |
| 10143 | + | |
| 10144 | + | |
10143 | 10145 | | |
10144 | 10146 | | |
10145 | | - | |
| 10147 | + | |
10146 | 10148 | | |
10147 | | - | |
| 10149 | + | |
10148 | 10150 | | |
10149 | 10151 | | |
10150 | | - | |
| 10152 | + | |
10151 | 10153 | | |
10152 | 10154 | | |
10153 | | - | |
| 10155 | + | |
10154 | 10156 | | |
10155 | 10157 | | |
10156 | | - | |
| 10158 | + | |
10157 | 10159 | | |
10158 | 10160 | | |
10159 | 10161 | | |
10160 | | - | |
10161 | 10162 | | |
10162 | 10163 | | |
| 10164 | + | |
10163 | 10165 | | |
10164 | 10166 | | |
10165 | 10167 | | |
| |||
0 commit comments