Sagar Kamble
9f8d5acfbb
gpu: nvgpu: fix the return value from gk20a_mm_pin
The return value in case of failure of dma_buf_attach and
dma_buf_map_attachment was ignored and NULL was returned.
This would lead to following null pointer access. Fix it.
[ 293.622880] Unable to handle kernel NULL pointer dereference
at virtual address 0000000000000000
...
[ 293.711860] Hardware name: quill (DT)
[ 293.720393] pc : nvgpu_linux_sgt_create+0x14/0xa8 [nvgpu]
[ 293.725871] lr : nvgpu_vm_map_linux+0x104/0x1c8 [nvgpu]
...
[ 293.813934] Call trace:
[ 293.816455] nvgpu_linux_sgt_create+0x14/0xa8 [nvgpu]
[ 293.821573] nvgpu_vm_map_linux+0x104/0x1c8 [nvgpu]
[ 293.826515] nvgpu_vm_map_buffer+0x120/0x290 [nvgpu]
[ 293.831542] gk20a_as_dev_ioctl+0x364/0xfb8 [nvgpu]
[ 293.836416] ksys_ioctl+0x17c/0xba8
[ 293.839899] __arm64_sys_ioctl+0x18/0x28
[ 293.843817] do_el0_svc+0xf8/0x1b8
[ 293.847214] el0_sync_handler+0x11c/0x28c
[ 293.851217] el0_sync+0x140/0x180
Bug 2834141
Change-Id: I0d9e863d0326946c8091bfb1b907b62b055f7272
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2332204
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2020-12-15 14:13:28 -06:00
..
2020-12-15 14:10:29 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:13:28 -06:00
2019-05-06 02:56:53 -07:00
2019-05-06 02:56:53 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2019-01-31 12:04:10 -08:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:05:52 -06:00
2018-06-27 07:30:06 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:10:29 -06:00
2019-04-19 13:55:11 -07:00
2020-12-15 14:13:28 -06:00
2018-09-05 04:51:40 -07:00
2020-12-15 14:13:28 -06:00
2019-07-26 04:07:01 -07:00
2020-12-15 14:05:52 -06:00
2019-06-11 09:46:24 -07:00
2019-05-17 01:49:27 -07:00
2018-06-15 17:47:31 -07:00
2019-04-22 03:15:09 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-06-15 17:47:31 -07:00
2018-10-31 15:25:23 -07:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:05:52 -06:00
2018-07-24 16:10:58 -07:00
2019-01-10 20:09:38 -08:00
2018-09-05 04:51:50 -07:00
2020-12-15 14:05:52 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2019-02-11 20:55:07 -08:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2019-06-13 23:05:43 -07:00
2020-12-15 14:13:28 -06:00
2019-02-01 09:45:57 -08:00
2018-10-31 15:25:23 -07:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:05:52 -06:00
2018-06-15 17:47:31 -07:00
2018-09-25 13:10:19 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:10:29 -06:00
2019-02-20 23:05:04 -08:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2019-04-16 13:04:27 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:05:52 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2018-10-29 08:04:25 -07:00
2020-12-15 14:13:28 -06:00
2018-07-05 21:48:44 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2019-06-11 09:46:24 -07:00
2018-06-15 17:47:31 -07:00
2018-11-07 10:35:13 -08:00
2019-05-03 13:08:00 -07:00
2020-12-15 14:13:28 -06:00
2019-08-01 21:57:18 -07:00
2019-07-23 13:27:29 -07:00
2020-12-15 14:05:52 -06:00
2019-04-16 13:04:27 -07:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:05:52 -06:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2019-06-11 09:46:24 -07:00
2018-07-26 00:06:07 -07:00
2019-05-06 02:56:53 -07:00
2019-05-06 02:56:53 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2019-04-22 05:25:48 -07:00
2018-08-29 20:34:34 -07:00
2018-09-09 17:22:24 -07:00
2018-08-29 20:34:34 -07:00
2018-09-09 17:22:24 -07:00
2018-09-09 17:22:24 -07:00
2019-07-26 04:07:01 -07:00
2018-09-05 04:51:36 -07:00
2019-07-26 04:07:01 -07:00
2018-11-08 19:35:09 -08:00
2020-12-15 14:13:28 -06:00
2018-08-29 20:34:34 -07:00
2019-05-15 22:29:40 -07:00
2019-08-27 10:37:21 -07:00
2018-10-12 17:35:10 +05:30
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2019-08-21 23:38:56 -07:00
2018-09-25 13:10:19 -07:00
2020-12-15 14:13:28 -06:00
2019-05-06 02:56:53 -07:00
2019-05-06 02:56:53 -07:00
2020-12-15 14:13:28 -06:00
2018-06-15 17:47:31 -07:00
2020-12-15 14:10:29 -06:00
2020-12-15 14:13:28 -06:00
2020-12-15 14:13:28 -06:00
2019-08-28 14:24:19 -07:00