Use the overflow-protected struct_size() helper macro to compute the
allocation size of the vop2 data structure.
Signed-off-by: Jacob Keller
Cc: Sandy Huang
Cc: Heiko Stübner
Cc: David Airlie
---
I found this while developing a coccinelle script to detect potential places
where struct_size
On 9/9/2020 1:55 PM, Keith Busch wrote:
> On Wed, Sep 09, 2020 at 01:06:39PM -0700, Joe Perches wrote:
>> diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
>> index eea0f453cfb6..8aac5bc60f4c 100644
>> --- a/crypto/tcrypt.c
>> +++ b/crypto/tcrypt.c
>> @@ -2464,7 +2464,7 @@ static int do_test(const
r supports are NOT implemented.
>
> Besides, the page pool memory model is used to get better performance.
>
> Signed-off-by: Julien Panis
> ---
Reviewed-by: Jacob Keller
> Changes in v8:
> - Fix some warnings reported by patchwork.
> - Link to v7:
> https://lore.kernel.org/
gt; - pool = devm_kzalloc(dev, sizeof(*pool), GFP_KERNEL);
> + pool = kzalloc(sizeof(*pool), GFP_KERNEL);
You could refactor pool to use the new __free cleanup annotations along
with return_no_free() to automatically handle cleanup of the pool when
the function exits on an error
(actually 610 Mbits/sec, with a 5 Mbits/sec
> loss due to extra processing in the hot path to handle XDP).
>
> Signed-off-by: Julien Panis
Reviewed-by: Jacob Keller
On 3/7/2025 11:36 AM, David Laight wrote:
> On Fri, 7 Mar 2025 12:42:41 +0100
> Jiri Slaby wrote:
>
>> On 07. 03. 25, 12:38, Ingo Molnar wrote:
>>>
>>> * Jiri Slaby wrote:
>>>
On 06. 03. 25, 17:25, Kuan-Wei Chiu wrote:
> Change return type to bool for better clarity. Update the
On 3/13/2025 9:36 AM, H. Peter Anvin wrote:
> On March 13, 2025 9:24:38 AM PDT, Yury Norov wrote:
>> On Wed, Mar 12, 2025 at 05:09:16PM -0700, H. Peter Anvin wrote:
>>> On March 12, 2025 4:56:31 PM PDT, Jacob Keller
>>> wrote:
>>
>> [...]
>>
44be47a8f ("drm/nouveau: Fix a potential theorical leak in
nouveau_get_backlight_name()")
Reported-by: kernel test robot
Closes:
https://lore.kernel.org/oe-kbuild-all/202312050324.0kv4pnfz-...@intel.com/
Signed-off-by: Jacob Keller
---
This could also be fixed by simply increasing BL_
On 6/4/2025 3:01 PM, Timur Tabi wrote:
> On Wed, 2025-06-04 at 14:03 -0700, Jacob Keller wrote:
>> This could also be fixed by simply increasing BL_NAME_SIZE to 24, making it
>> large enough to fit any size integer into its format string, or by checking
>> the return valu
On 6/4/2025 3:40 PM, Timur Tabi wrote:
> On Wed, 2025-06-04 at 15:16 -0700, Jacob Keller wrote:
>> Fair enough. Another alternative which saves the stack and macro would
>> be to add a new version of backlight_register_device which can pass the
>> integer number itself i
n
nouveau_get_backlight_name()")
Reported-by: kernel test robot
Closes:
https://lore.kernel.org/oe-kbuild-all/202312050324.0kv4pnfz-...@intel.com/
Suggested-by: Timur Tabi
Signed-off-by: Jacob Keller
---
Changes in v2:
- Just increase the buffer size
- Link to v1:
https://lore.kernel.
11 matches
Mail list logo