On Fri, May 23, 2014 at 10:23:44PM +0200, Matthias Beyer wrote: > Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx> > --- > drivers/staging/bcm/CmHost.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/bcm/CmHost.c b/drivers/staging/bcm/CmHost.c > index 181c4e9..3f29dea 100644 > --- a/drivers/staging/bcm/CmHost.c > +++ b/drivers/staging/bcm/CmHost.c > @@ -1571,7 +1571,8 @@ int AllocAdapterDsxBuffer(struct bcm_mini_adapter *Adapter) > * Need to Allocate memory to contain the SUPER Large structures > * Our driver can't create these structures on Stack > */ > - Adapter->caDsxReqResp = kmalloc(sizeof(struct bcm_add_indication_alt)+LEADER_SIZE, GFP_KERNEL); > + Adapter->caDsxReqResp = kmalloc(sizeof(struct bcm_add_indication_alt) > + + LEADER_SIZE, GFP_KERNEL); This should be lined up like this: Adapter->caDsxReqResp = kmalloc(sizeof(struct bcm_add_indication_alt) + LEADER_SIZE, GFP_KERNEL); regards, dan carpenter > if (!Adapter->caDsxReqResp) > return -ENOMEM; > > -- > 1.9.3 > > _______________________________________________ > devel mailing list > devel@xxxxxxxxxxxxxxxxxxxxxx > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel