[PATCH v2] PC, KVM, CMA: Fix regression caused by wrong get_order() use

Joonsoo Kim iamjoonsoo.kim at lge.com
Wed Aug 20 12:44:58 EST 2014


On Thu, Aug 14, 2014 at 03:03:07PM +1000, Alexey Kardashevskiy wrote:
> fc95ca7284bc54953165cba76c3228bd2cdb9591 claims that there is no
> functional change but this is not true as it calls get_order() (which
> takes bytes) where it should have called ilog2() and the kernel stops
> on VM_BUG_ON().
> 
> This replaces get_order() with order_base_2() (round-up version of ilog2).
> 
> Suggested-by: Paul Mackerras <paulus at samba.org>
> Cc: Alexander Graf <agraf at suse.de>
> Cc: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
> Cc: Joonsoo Kim <iamjoonsoo.kim at lge.com>
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>

Sorry for my fault. :(

Acked-by: Joonsoo Kim <iamjoonsoo.kim at lge.com>

Thanks.


More information about the Linuxppc-dev mailing list