]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
FMC: show_sdb_tree: fix offset calculation
authorAlessandro Rubini <rubini@gnudd.com>
Thu, 30 Jan 2014 12:05:20 +0000 (13:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 19:51:04 +0000 (11:51 -0800)
commit83b1bfba100c1e747c281049255a4a32197c6393
tree3479503e77a84d88a969067017e630699e37a04e
parente4d6c4b79cc189c1b0d65f8e3875c4411e097bee
FMC: show_sdb_tree: fix offset calculation

The code reported wrong addresses in the sdb dumps.  All sdb addresses
are relative, but the code was adding the base address twice.  Bug
exposed by a gateware image with two bridge levels.

Thanks David for reporting the problem.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Reported-by: Juan David Gonzalez Cobas <dcobas@cern.ch>
Tested-by: Juan David Gonzalez Cobas <dcobas@cern.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fmc/fmc-sdb.c