diff options
author | Pankaj Dubey <pankaj.dubey@samsung.com> | 2014-09-18 09:42:20 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:36:34 (GMT) |
commit | 2deca15f919a5684296e4640cdd75766d22c4b2a (patch) | |
tree | 52a7b473cc9cbbadb63e67cfe342cca3b5b64434 /Documentation | |
parent | cf08d43a077f6f7e975885610bde40e2479e093b (diff) | |
download | linux-fsl-qoriq-2deca15f919a5684296e4640cdd75766d22c4b2a.tar.xz |
regmap: fix NULL pointer dereference in regmap_get_val_endian
Recents commits for getting reg endianness causing NULL pointer
dereference if dev is passed NULL in regmap_init_mmio. This patch
fixes this issue, and allows to parse reg endianness only if dev
and dev->of_node exist.
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
This patch is pulled back from upstream:
commit 6e64b6ccc1e46932768e3bb8974fc2e5589bca7a
Change-Id: Id9f795400bbda943dfd7b2fb71a752d4211b7540
Reviewed-on: http://git.am.freescale.net:8181/19860
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions