EDAC, MCE: Fix edac_init_mce_inject error handling
authorAxel Lin <axel.lin@gmail.com>
Fri, 19 Nov 2010 03:05:43 +0000 (22:05 -0500)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 22 Nov 2010 14:35:32 +0000 (15:35 +0100)
commitdf4b2a30e0b9e553abfd63ee75dbbd66be80f01a
treed6879b023bfe3ee94b03a86aec55741aa448fc2a
parentf570e1dd8469d39420f406a4f5442c270b1e759e
EDAC, MCE: Fix edac_init_mce_inject error handling

Otherwise, variable i will be -1 inside the latest iteration of the
while loop.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/mce_amd_inj.c