[PATCH] crypto/ccp: Check for the NULL pointer after calling rte_malloc

2022-07-09 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the rte_malloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: 09a0fd736a0 ("crypto/ccp: enable IOMMU") Signed-off-by: Shiqi

[PATCH] lib: Check for the NULL pointer after calling malloc

2022-07-07 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the malloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: fa8054c8c88 ("lib/node: add ethdev control") Signed-off-by: Shiqi

[PATCH] examples/eventdev: Check for the NULL pointer after calling rte_zmalloc

2022-07-06 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the rte_zmalloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: fa8054c8c88 ("examples/eventdev: add thread safe Tx worker p

[PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc

2022-07-05 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the malloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: b7aaf417f93 ("raw/ioat: add bus driver for device scanning autom

[PATCH] raw/ioat: Check for the NULL pointer after calling malloc

2022-06-27 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the malloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: b7aaf417f93 ("raw/ioat: add bus driver for device scanning autom

[V2] common/iavf:replace zero-length arrays with flexible ones

2022-06-15 Thread 835703180
From: Shiqi Liu <835703...@qq.com> This patch replaces instances of zero-sized arrays i.e. those at the end of structures with "[0]" with the more standard syntax of "[]". Replacement was done using coccinelle script, with some revert and cleanup of whitespace after

[PATCH] common/iavf: replace zero-length arrays with flexible ones

2022-06-15 Thread 835703180
From: Shiqi Liu <835703...@qq.com> This patch replaces instances of zero-sized arrays i.e. those at the end of structures with "[0]" with the more standard syntax of "[]". Replacement was done using coccinelle script, with some revert and cleanup of whitespace afterwards. Signed-o

[PATCH V2] vdpa/mlx5: return correct error code after rte_intr_instance_alloc failed

2022-06-14 Thread 835703180
From: Shiqi Liu <835703...@qq.com> To Maxime, I am so sorry too late to reply your comment.My name is Shiqi Liu. I got stuck in how to reply the comment before.Now, it seenms to be ok!Maybe there will be some mistakes I have taken , when I reply,please tell me how to do it correctly! Thanks, Shiq

[PATCH V2] vdpa/mlx5: return correct error code after rte_intr_instance_alloc failed

2022-06-14 Thread 835703180
From: Shiqi Liu <835703...@qq.com> After function rte_intr_instance_alloc failed, we should return ENOMEM for error code. Fixes: 5fe068bf7a2 ("vdpa/mlx5: reuse resources in reconfiguration") Signed-off-by: Shiqi Liu <835703...@qq.com> --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 1 + 1 file change

[PATCH 2/2] lib/power:fix comparision to bool warning

2022-06-13 Thread 835703180
From: newsky647 <835703...@qq.com> expr "if ([expr] == true)" can be simplified to "if ([expr])". Therefore, simplify it, no functional change. Fixes: 450f0791312 ("lib/power: power: add traffic pattern aware power control" Signed-off-by: newsky647 <835703...@qq.com> --- lib/power/rte_power_emp

[PATCH] vdpa/mlx5: return correct error code after rte_intr_instance_alloc failed

2022-06-12 Thread 835703180
From: newsky647 <835703...@qq.com> After function rte_intr_instance_alloc failed, we should return ENOMEM for error code. Fixes: 5fe068bf7a2 ("vdpa/mlx5: reuse resources in reconfiguration") Signed-off-by: newsky647 <835703...@qq.com> --- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 1 + 1 file change