On Wed, Apr 05, 2017 at 05:04:35PM +0200, SF Markus Elfring wrote:
> >> @@ -270,13 +268,14 @@ int qib_init_pportdata(struct qib_pportdata *ppd,
> >> struct qib_devdata *dd,
> >>if (!ppd->congestion_entries)
> >>goto bail_1;
> >>
> >> - size = sizeof(struct cc_table_shadow);
>
On Wed, Apr 05, 2017 at 05:04:35PM +0200, SF Markus Elfring wrote:
> >> @@ -270,13 +268,14 @@ int qib_init_pportdata(struct qib_pportdata *ppd,
> >> struct qib_devdata *dd,
> >>if (!ppd->congestion_entries)
> >>goto bail_1;
> >>
> >> - size = sizeof(struct cc_table_shadow);
>
On Wed, 2017-04-05 at 15:55 +0200, SF Markus Elfring wrote:
> - size = sizeof(struct ib_cc_congestion_setting_attr);
> - ppd->congestion_entries_shadow = kzalloc(size, GFP_KERNEL);
> + ppd->congestion_entries_shadow = kzalloc(sizeof(*ppd
> +
On Wed, 2017-04-05 at 15:55 +0200, SF Markus Elfring wrote:
> - size = sizeof(struct ib_cc_congestion_setting_attr);
> - ppd->congestion_entries_shadow = kzalloc(size, GFP_KERNEL);
> + ppd->congestion_entries_shadow = kzalloc(sizeof(*ppd
> +
>> @@ -270,13 +268,14 @@ int qib_init_pportdata(struct qib_pportdata *ppd,
>> struct qib_devdata *dd,
>> if (!ppd->congestion_entries)
>> goto bail_1;
>>
>> -size = sizeof(struct cc_table_shadow);
>> -ppd->ccti_entries_shadow = kzalloc(size, GFP_KERNEL);
>> +
>> @@ -270,13 +268,14 @@ int qib_init_pportdata(struct qib_pportdata *ppd,
>> struct qib_devdata *dd,
>> if (!ppd->congestion_entries)
>> goto bail_1;
>>
>> -size = sizeof(struct cc_table_shadow);
>> -ppd->ccti_entries_shadow = kzalloc(size, GFP_KERNEL);
>> +
On Wed, Apr 05, 2017 at 03:55:39PM +0200, SF Markus Elfring wrote:
> From: Markus Elfring
> Date: Wed, 5 Apr 2017 15:00:44 +0200
>
> * Replace the specification of two data structures by pointer dereferences
> to make the corresponding size determination a bit
On Wed, Apr 05, 2017 at 03:55:39PM +0200, SF Markus Elfring wrote:
> From: Markus Elfring
> Date: Wed, 5 Apr 2017 15:00:44 +0200
>
> * Replace the specification of two data structures by pointer dereferences
> to make the corresponding size determination a bit safer according to
> the Linux
8 matches
Mail list logo