diff options
author | Robert Richter <[email protected]> | 2019-11-06 09:33:09 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-11-10 12:40:14 +0100 |
commit | d260e8ff5195d3080cc11ae1f35cf4e6eb1a5d24 (patch) | |
tree | 88439ccc108c6c58d797d33dbe3aae011e4608f9 /net/switchdev/switchdev.c | |
parent | c498afaf7df87f44e7cb383c135baec52b5259be (diff) |
EDAC/mc: Do not BUG_ON() in edac_mc_alloc()
No need to crash the system in case edac_mc_alloc() is called with
invalid arguments, just warn and return. This would cause a checkpatch
warning when touching the code later, so just fix it.
Signed-off-by: Robert Richter <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Cc: "[email protected]" <[email protected]>
Cc: James Morse <[email protected]>
Cc: Tony Luck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions