On Fri. 15 Jan 2021 at 02:03, Oliver Hartkopp wrote:
> On 14.01.21 10:16, Vincent MAILHOL wrote:
> > On Tue. 14 Jan 2021 at 17:23, Oliver Hartkopp
> > wrote:
> >> On 14.01.21 02:59, Vincent MAILHOL wrote:
> >>> On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde
> >>> wrote:
>
> If the l
On 14.01.21 10:16, Vincent MAILHOL wrote:
On Tue. 14 Jan 2021 at 17:23, Oliver Hartkopp wrote:
On 14.01.21 02:59, Vincent MAILHOL wrote:
On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde wrote:
If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
return 0xF. This i
On Tue. 14 Jan 2021 at 17:23, Oliver Hartkopp wrote:
> On 14.01.21 02:59, Vincent MAILHOL wrote:
> > On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde wrote:
> >>
> >> If the length paramter in len2dlc() exceeds the size of the len2dlc array,
> >> we
> >> return 0xF. This is equal to the last 16 m
On 14.01.21 02:59, Vincent MAILHOL wrote:
On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde wrote:
If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
return 0xF. This is equal to the last 16 members of the array.
This patch removes these members from the array, use
If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
return 0xF. This is equal to the last 16 members of the array.
This patch removes these members from the array, uses ARRAY_SIZE() for the
length check, and returns CANFD_MAX_DLC (which is 0xf).
Reviewed-by: Vincent Mail
On 1/14/21 2:59 AM, Vincent MAILHOL wrote:
> On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde wrote:
>>
>> If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
>> return 0xF. This is equal to the last 16 members of the array.
>>
>> This patch removes these members from the
If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
return 0xF. This is equal to the last 16 members of the array.
This patch removes these members from the array, uses ARRAY_SIZE() for the
length check, and returns CANFD_MAX_DLC (which is 0xf).
Reviewed-by: Vincent Mail
On Tue. 14 Jan 2021 at 06:14, Marc Kleine-Budde wrote:
>
> If the length paramter in len2dlc() exceeds the size of the len2dlc array, we
> return 0xF. This is equal to the last 16 members of the array.
>
> This patch removes these members from the array, uses ARRAY_SIZE() for the
> length check, a