summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-06-24 04:14:52 +1000
committerPaul Mackerras <paulus@samba.org>2008-07-01 11:28:17 +1000
commit73f38fe1b563a9d23ffacbda7b51decf41b0c49c (patch)
tree37e228071b05696350bc015f26a5a9270dde927f /security
parent178f8d78fdeaace8b22a759a059b74f39caf23a4 (diff)
downloadop-kernel-dev-73f38fe1b563a9d23ffacbda7b51decf41b0c49c.zip
op-kernel-dev-73f38fe1b563a9d23ffacbda7b51decf41b0c49c.tar.gz
drivers/macintosh/smu.c: Improve error handling
This makes two changes: * As noted by Akinobu Mita in patch b1fceac2b9e04d278316b2faddf276015fc06e3b, alloc_bootmem never returns NULL and always returns a zeroed region of memory. Thus the error checking code and memset after the call to alloc_bootmem are not necessary. * The old error handling code consisted of setting a global variable to NULL and returning an error code, which could cause previously allocated resources never to be freed. The patch adds calls to appropriate resource deallocation functions. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud