“5afb707120ec269725c71a2282ee3473c5bc04c1”上不存在“drivers/media/dvb/git@gitcode.net:openeuler/kernel.git”
drivers/macintosh/smu.c: Improve error handling
This makes two changes: * As noted by Akinobu Mita in patch b1fceac2, 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: NJulia Lawall <julia@diku.dk> Signed-off-by: NPaul Mackerras <paulus@samba.org>
Showing
想要评论请 注册 或 登录