diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2017-01-04 03:39:28 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-05 04:26:00 -0500 |
| commit | a33af42261ce0269e188d7c88dcc643df064e8d3 (patch) | |
| tree | 80a31383c13ce03815bb6d11182638319b6694a5 /include/uapi | |
| parent | d59e5b3a1a4edf5fc6220b31e208ddec97ab48ec (diff) | |
video: tegra: host: pva: Add pin/unpin buffer count limit
Check buffer count to prevent overflows in byte count
calculations.
Coverity ID 38903
Bug 200192445
Change-Id: I258fa8592f4c2920e3973454c48a146b3ca29592
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: http://git-master/r/1279992
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/nvhost_pva_ioctl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/nvhost_pva_ioctl.h b/include/uapi/linux/nvhost_pva_ioctl.h index 9a570bbe3..d9052539d 100644 --- a/include/uapi/linux/nvhost_pva_ioctl.h +++ b/include/uapi/linux/nvhost_pva_ioctl.h | |||
| @@ -80,6 +80,8 @@ struct pva_pin_unpin_args { | |||
| 80 | __u32 reserved; | 80 | __u32 reserved; |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | #define PVA_MAX_PIN_BUFFERS 256 | ||
| 84 | |||
| 83 | /** | 85 | /** |
| 84 | * struct pva_ioctl_status_handle - A handle to a status structure | 86 | * struct pva_ioctl_status_handle - A handle to a status structure |
| 85 | * | 87 | * |
