Re: [PATCH v2] net: mana: Fix possible double free in error handling path

2024-06-25 Thread Przemek Kitszel
+ madev = NULL; ret = auxiliary_device_add(adev); if (ret) goto add_fail; Reviewed-by: Przemek Kitszel

Re: [PATCH] net: mana: Fix possible double free in error handling path

2024-06-24 Thread Przemek Kitszel
On 6/24/24 05:21, Ma Ke wrote: When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release I would add () after function name calls kfree(madev) to free memory. We shouldn't call kfree(padev) there is no `padev` in the patch :) "to free

Re: [Intel-wired-lan] [PATCH net-next v5 2/3] checkpatch: add ethtool_sprintf rules

2023-12-06 Thread Przemek Kitszel
scripts/checkpatch.pl | 19 +++ 1 file changed, 19 insertions(+) Reviewed-by: Przemek Kitszel diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 25fdb7fda112..6924731110d8 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -70

Re: [Intel-wired-lan] [PATCH net-next v5 1/3] ethtool: Implement ethtool_puts()

2023-12-06 Thread Przemek Kitszel
+ net/ethtool/ioctl.c | 7 +++ 2 files changed, 20 insertions(+) Reviewed-by: Przemek Kitszel

Re: [PATCH 3/3] checkpatch: add ethtool_sprintf rules

2023-10-26 Thread Przemek Kitszel
On 10/26/23 01:40, Justin Stitt wrote: Add some warnings for using ethtool_sprintf() where a simple ethtool_puts() would suffice. The two cases are: 1) Use ethtool_sprintf() with just two arguments: | ethtool_sprintf(&data, driver[i].name); or 2) Use ethtool_sprintf() with a standalone "%

Re: [PATCH 2/3] treewide: Convert some ethtool_sprintf() to ethtool_puts()

2023-10-26 Thread Przemek Kitszel
On 10/26/23 01:40, Justin Stitt wrote: This patch converts some basic cases of ethtool_sprintf() to ethtool_puts(). The conversions are used in cases where ethtool_sprintf() was being used with just two arguments: | ethtool_sprintf(&data, buffer[i].name); or when it's used with format stri