• Dan Carpenter's avatar
    drm: use memdup_user() as a cleanup · d016da58
    Dan Carpenter authored
    drivers/gpu/drm/r128/r128_state.c:1014:10-17: WARNING opportunity for memdup_user
    /c/kernel-tests/src/cocci/drivers/gpu/drm/r128/r128_state.c:1029:9-16: WARNING opportunity for memdup_user
    /c/kernel-tests/src/cocci/drivers/gpu/drm/r128/r128_state.c:904:10-17: WARNING opportunity for memdup_user
    /c/kernel-tests/src/cocci/drivers/gpu/drm/r128/r128_state.c:914:9-16: WARNING opportunity for memdup_user
    
     Use memdup_user rather than duplicating its implementation
     This is a little bit restricted to reduce false positives
    
    Generated by: coccinelle/api/memdup_user.cocci
    
    CC: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    d016da58
r128_state.c 39.9 KB