diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-11-22 12:10:10 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-11-22 12:10:10 -0700 |
commit | 56adf7e8127d601b172e180b44551ce83404348f (patch) | |
tree | eabcdad1e4b17ea8f7c20a50a44ca859360085d3 /fs/nilfs2/ioctl.c | |
parent | 49954c1567cb0d70d28bb5512d471dc5bd4e2c3f (diff) |
shdma: fix initialization error handling
1/ Error handling code following a kzalloc should free the allocated data.
2/ Report an error when no platform data is detected
Both problems fixed by moving the platform data check before the allocation,
and allows a goto to be killed.
Reported-by: Julia Lawall <julia@diku.dk>
Acked-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/nilfs2/ioctl.c')
0 files changed, 0 insertions, 0 deletions