Re: [PATCH][next] net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps

2017-09-03 Thread David Miller
From: Colin King Date: Thu, 31 Aug 2017 18:07:24 +0100 > From: Colin Ian King > > The current allocation for dev->caps.spec_qps is for the size of the > pointer and not the size of the actual mlx4_spec_qps structure. Fix > this by using the correct size. Also splint allocation over a few >

Re: [PATCH][next] net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps

2017-09-03 Thread Tariq Toukan
On 31/08/2017 8:07 PM, Colin King wrote: From: Colin Ian King The current allocation for dev->caps.spec_qps is for the size of the pointer and not the size of the actual mlx4_spec_qps structure. Fix this by using the correct size. Also splint allocation over a few lines to make it cppchec

[PATCH][next] net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps

2017-08-31 Thread Colin King
From: Colin Ian King The current allocation for dev->caps.spec_qps is for the size of the pointer and not the size of the actual mlx4_spec_qps structure. Fix this by using the correct size. Also splint allocation over a few lines to make it cppcheck clean on overly wide lines. Detected by Co