]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix leak un ioremap_page_range() failure
authorIngo Molnar <mingo@elte.hu>
Thu, 28 Feb 2008 13:02:08 +0000 (14:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Feb 2008 17:55:42 +0000 (18:55 +0100)
commit381ac039f4b25526326d4d3d83f1b262a7e13a0b
tree6508ef458acdf590ffec999845441d76f3a2f72a
parent062c8a8e2900a0aad978dfa7c1fb23d01b54c9c9
x86: fix leak un ioremap_page_range() failure

Jan Beulich noticed it during code review that if a driver's ioremap()
fails (say due to -ENOMEM) then we might leak the struct vm_area.

Free it properly.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c