]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: sgdma: add comment around suspiscious error handler
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 10 Dec 2014 19:07:20 +0000 (04:07 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:14:56 +0000 (12:14 +1000)
commit1fa7559aa41ade18afaccd9236710d087dcf9084
tree15ea344cbb4f09b964a7611d4869cfb3ed09fe01
parent2e58207d000ac9d6ebf9efc56a08e2b98768adc0
drm/nouveau: sgdma: add comment around suspiscious error handler

Common programming sense dictates that resources allocated by a function
are freed by this function should it fails, but this is not the case for
the allocated structure of nouveau_sgdma_create_ttm(). It seems that
n00b contributors attempt to fix this one like bugs flying towards a bug
zapper, so add a comment to hopefully prevent this from happening
anymore.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_sgdma.c