Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (4 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c

    r26139 r31885  
    107107                break;
    108108        default:
    109                 DRM_ERROR("Illegal vmwgfx get param request: %d\n",
    110                           param->param);
    111109                return -EINVAL;
    112110        }
     
    162160        struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv);
    163161
    164         if (unlikely(arg->pad64 != 0)) {
     162        if (unlikely(arg->pad64 != 0 || arg->max_size == 0)) {
    165163                DRM_ERROR("Illegal GET_3D_CAP argument.\n");
    166164                return -EINVAL;
Note: See TracChangeset for help on using the changeset viewer.