Re: [PATCH] mmc: block: fix free of uninitialized 'idata->buf'

2016-07-18 Thread Ulf Hansson
On 12 July 2016 at 12:07, Ulf Hansson wrote: > + stable > > On 8 July 2016 at 17:27, Ville Viinikka wrote: >> Set 'idata->buf' to NULL so that it never gets returned without >> initialization. This fixes a bug where mmc_blk_ioctl_cmd() would >> free both 'idata' and 'idata->buf' but 'idata->buf'

Re: [PATCH] mmc: block: fix free of uninitialized 'idata->buf'

2016-07-12 Thread Ulf Hansson
+ stable On 8 July 2016 at 17:27, Ville Viinikka wrote: > Set 'idata->buf' to NULL so that it never gets returned without > initialization. This fixes a bug where mmc_blk_ioctl_cmd() would > free both 'idata' and 'idata->buf' but 'idata->buf' was returned > uninitialized. > > Fixes: 1ff8950c0433

[PATCH] mmc: block: fix free of uninitialized 'idata->buf'

2016-07-08 Thread Ville Viinikka
Set 'idata->buf' to NULL so that it never gets returned without initialization. This fixes a bug where mmc_blk_ioctl_cmd() would free both 'idata' and 'idata->buf' but 'idata->buf' was returned uninitialized. Fixes: 1ff8950c0433 ("mmc: block: change to use kmalloc when copy data from userspace")