]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Check for valid host1x pointer
authorThierry Reding <treding@nvidia.com>
Tue, 3 Sep 2013 06:50:39 +0000 (08:50 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 3 Sep 2013 08:10:11 +0000 (10:10 +0200)
commit084285d4149620d506bf9d556882ab8efd8325a3
treeb2f2a2fdce603585275f87a25934bddb8fc7d310
parenta951bb9d9a6399b8edee289e6271d0d598409bd5
gpu: host1x: Check for valid host1x pointer

Under rare circumstances it can happen that the host1x driver's .probe()
doesn't finish properly, in which case the device's driver-specific data
will not be set. Instead of crashing in such a situation, propagate the
error to callers of the host1x_get_drm_data() function.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c