RAS/CEC: Check the correct variable in the debugfs error handling
authorChristophe JAILLET <[email protected]>
Mon, 26 Jun 2017 12:35:32 +0000 (14:35 +0200)
committerThomas Gleixner <[email protected]>
Mon, 26 Jun 2017 13:58:57 +0000 (15:58 +0200)
commit32288daf3f2439f57167c03cd679c2eba28923b7
tree1f2ecd7db488148ff2b3f7e8bbac84e8b3b6bb7e
parente2de64ec52659870b4fdef5bf08f265ce5fe1ccc
RAS/CEC: Check the correct variable in the debugfs error handling

Check the correct variable when handling a potential error from
debugfs_create_file(). Most likely a copy-paste botch.

[ Rewrite commit message. ]
Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
drivers/ras/cec.c