On Tue, Feb 24, 2015 at 02:17:46PM -0800, Danesh Petigara wrote: > The CMA aligned offset calculation is incorrect for > non-zero order_per_bit values. > > For example, if cma->order_per_bit=1, cma->base_pfn= > 0x2f800000 and align_order=12, the function returns > a value of 0x17c00 instead of 0x400. > > This patch fixes the CMA aligned offset calculation. > > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Danesh Petigara <dpetigara@xxxxxxxxxxxx> > Reviewed-by: Gregory Fong <gregory.0xf0@xxxxxxxxx> > Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx> > --- > Changes since v1: > - moved comment out of function > - removed unused 'alignment' variable > > v1: https://lkml.org/lkml/2015/2/24/598 > <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly. </formletter> -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html