Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (4 months ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

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

    r31574 r31859  
    115115                break;
    116116        default:
    117                 DRM_ERROR("Illegal vmwgfx get param request: %d\n",
    118                           param->param);
    119117                return -EINVAL;
    120118        }
     
    187185        struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv);
    188186
    189         if (unlikely(arg->pad64 != 0)) {
     187        if (unlikely(arg->pad64 != 0 || arg->max_size == 0)) {
    190188                DRM_ERROR("Illegal GET_3D_CAP argument.\n");
    191189                return -EINVAL;
Note: See TracChangeset for help on using the changeset viewer.