gpu: nvgpu: validate error notifier offset
authorKonsta Holtta <kholtta@nvidia.com>
Tue, 8 Mar 2016 11:58:11 +0000 (13:58 +0200)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 14 Mar 2016 22:48:44 +0000 (15:48 -0700)
commitee62433c7b903f226220e485a90cc5860da49f94
treef1ec0667219c21e373ac7f0f657ce24fb0845a5a
parent9fc101e766b4c0e7f2fb7b02e44e9cd64136ae0d
gpu: nvgpu: validate error notifier offset

Make sure that the notifier object fits within the supplied buffer.

Bug 1739183
Bug 1739932

Change-Id: I713574ce797ffc23cec10b5114f469dbadc68f1e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1026410
(cherry picked from commit f476b93eb19b962b8760457102448bd533efc54d)
Reviewed-on: http://git-master/r/1029379
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c