Commit 71d7816
i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c
[ Upstream commit 24474f2 ]
Fixed possible memory leak in i40e_vc_add_cloud_filter function:
cfilter is being allocated and in some error conditions
the function returns without freeing the memory.
Fix of integer truncation from u16 (type of queue_id value) to u8
when calling i40e_vc_isvalid_queue_id function.
Fixes: e284fc2 ("i40e: Add and delete cloud filter")
Signed-off-by: Martyna Szapar <martyna.szapar@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 48a9be9 commit 71d7816
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
3345 | 3345 | | |
3346 | 3346 | | |
3347 | 3347 | | |
3348 | | - | |
| 3348 | + | |
3349 | 3349 | | |
3350 | 3350 | | |
3351 | 3351 | | |
3352 | 3352 | | |
3353 | 3353 | | |
3354 | 3354 | | |
3355 | 3355 | | |
3356 | | - | |
| 3356 | + | |
3357 | 3357 | | |
3358 | 3358 | | |
3359 | 3359 | | |
3360 | 3360 | | |
3361 | 3361 | | |
3362 | 3362 | | |
3363 | | - | |
3364 | | - | |
| 3363 | + | |
| 3364 | + | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| |||
3422 | 3422 | | |
3423 | 3423 | | |
3424 | 3424 | | |
3425 | | - | |
| 3425 | + | |
3426 | 3426 | | |
3427 | 3427 | | |
3428 | 3428 | | |
3429 | 3429 | | |
| 3430 | + | |
| 3431 | + | |
3430 | 3432 | | |
3431 | | - | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
3432 | 3436 | | |
3433 | 3437 | | |
3434 | 3438 | | |
| |||
0 commit comments