diff options
author | Pan Xinhui <[email protected]> | 2015-12-09 18:00:53 +0800 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2016-09-20 16:15:33 +1000 |
commit | 0d0fecc5b5bfddb0e67bef985cdeda2eac7ad6d8 (patch) | |
tree | f0cde1a3c27e0f6b43e22e2e86135d50655fff6c /arch/powerpc/sysdev/xilinx_intc.c | |
parent | 49d09bf2a66f4b5a6eabefb0d4c0f03f21810553 (diff) |
powerpc/nvram: Fix a memory leak in err path
If kmemdup fails, We need kfree *buff* first then return -ENOMEM.
Otherwise there is a memory leak.
Signed-off-by: Pan Xinhui <[email protected]>
Reviewed-by: Nathan Fontenot <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/xilinx_intc.c')
0 files changed, 0 insertions, 0 deletions