Error handling in drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c

Christophe JAILLET christophe.jaillet at wanadoo.fr
Wed Jul 13 05:08:22 UTC 2016


Hi,

in file 'drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c', error 
handling in 'gm20b_tegra_read_wpr()' seams to be broken.

The code used is:

     mc = ioremap(TEGRA_MC_BASE, 0xd00);
     if (!mc) {
         nvkm_error(&sb->subdev, "...");
         return PTR_ERR(mc);
     }

so we always return '0', which means success.


Best regards,

CJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160713/2026ff2d/attachment-0001.html>


More information about the dri-devel mailing list