aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorEzequiel Garcia <[email protected]>2014-09-02 09:51:15 -0300
committerDave Airlie <[email protected]>2014-09-17 10:54:33 +1000
commitb478e336b3e75505707a11e78ef8b964ef0a03af (patch)
tree59ad1d8e4434f4c42ff4dc96184a6762012afb60 /net/lapb/lapb_subr.c
parent40d201af0b9e6196a210b97d3b2493b1156564f6 (diff)
drm/tilcdc: Fix the error path in tilcdc_load()
The current error path calls tilcdc_unload() in case of an error to release the resources. However, this is wrong because not all resources have been allocated by the time an error occurs in tilcdc_load(). To fix it, this commit adds proper labels to bail out at the different stages in the load function, and release only the resources actually allocated. Tested-by: Darren Etheridge <[email protected]> Tested-by: Johannes Pointner <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions