i7300_edac: Fix error flag testing
authorJean Delvare <jdelvare@suse.de>
Thu, 18 Oct 2012 13:54:45 +0000 (15:54 +0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Oct 2012 09:43:00 +0000 (07:43 -0200)
commit7e06b7a3333f5c7a0cec12aff20d39c5c87c0795
treeec7a4dfacd5f658ee198be7187518481ef52a474
parent24bef66e74d647aebd34e0bef7693512b7912029
i7300_edac: Fix error flag testing

* Right-shift the values in GET_FBD_FAT_IDX and GET_FBD_NF_IDX, so
  that the callers get the result they expect.
* Fix definition of FERR_FAT_FBD_ERR_MASK.
* Call GET_FBD_NF_IDX, not GET_FBD_FAT_IDX, when operating on
  register FERR_NF_FBD. We were lucky they have the same definition.

This fixes kernel bug #44131:
https://bugzilla.kernel.org/show_bug.cgi?id=44131

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7300_edac.c
This page took 0.024768 seconds and 5 git commands to generate.