12 Apr, 2016

1 commit

  • I have instances where I want to use drm_malloc_ab() but with a custom
    gfp mask. And with those, where I want a temporary allocation, I want to
    try a high-order kmalloc() before using a vmalloc().

    So refactor my usage into drm_malloc_gfp().

    Signed-off-by: Chris Wilson
    Cc: dri-devel@lists.freedesktop.org
    Cc: Ville Syrjälä
    Reviewed-by: Ville Syrjälä
    Acked-by: Dave Airlie
    Link: http://patchwork.freedesktop.org/patch/msgid/1460113874-17366-6-git-send-email-chris@chris-wilson.co.uk

    Chris Wilson
     

01 Jul, 2015

1 commit


01 Jun, 2012

1 commit

  • ULONG_MAX is often used to check for integer overflow when calculating
    allocation size. While ULONG_MAX happens to work on most systems, there
    is no guarantee that `size_t' must be the same size as `long'.

    This patch introduces SIZE_MAX, the maximum value of `size_t', to improve
    portability and readability for allocation size validation.

    Signed-off-by: Xi Wang
    Acked-by: Alex Elder
    Cc: David Airlie
    Cc: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Xi Wang
     

15 Mar, 2010

1 commit