]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Add missing map->bus check
authorMarek Vasut <marex@denx.de>
Mon, 9 May 2022 00:30:35 +0000 (02:30 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2022 11:48:45 +0000 (12:48 +0100)
commit554ddbb1a0fbad07730592aa170569bf96148bb1
treeb2b50d91cd1b87f41628eadf461dd8d3efef31a7
parentfdd5cece5a4a3987d7ebfe26de4f476827e41a3a
regmap: Add missing map->bus check

The map->bus can be NULL here, add the missing NULL pointer check.

Fixes: 71ba7e7abdcd3 ("regmap: Add bulk read/write callbacks into regmap_config")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mark Brown <broonie@kernel.org>
To: linux-kernel@vger.kernel.org
Link: https://lore.kernel.org/r/20220509003035.225272-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c