diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-12-07 06:48:59 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-19 18:40:25 -0500 |
commit | b018428c166959c99f045a70db87a42a4e061fed (patch) | |
tree | 82437c0db54acfe07d01971ee49f199a12d0da0d /drivers/gpu/nvgpu/vgpu/vgpu.h | |
parent | 9da40c79fc36ea73cf682a7f4c76c8717bcf4fce (diff) |
gpu: nvgpu: Remove BUG_ON from _IOC_SIZE checks
When the user-supplied ioctl argument size is too large, just return
-EINVAL from the ioctl instead of crashing on a BUG_ON (for as, ctrl,
ctxsw, dbg and tsg nodes - channel and sched nodes are already okay).
Bug 1849661
Change-Id: I5b0d1d0c4ee47ce0136c424dda5975353f110c7e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1266606
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.h')
0 files changed, 0 insertions, 0 deletions