From 17649c90ff4c5246bb4babf6260029968a6d119d Mon Sep 17 00:00:00 2001 From: Sergey SENOZHATSKY Date: Mon, 31 Aug 2015 18:54:58 +0900 Subject: [PATCH] regmap: fix a NULL pointer dereference in __regmap_init __regmap_init() may receive a NULL `struct regmap_bus *bus' pointer, for example, from snd_hdac_regmap_init(), and it make sure that it does not NULL deference `bus`, except around ->max_raw_read and ->max_raw_write initialisation. Add missing check. Signed-off-by: Sergey Senozhatsky Signed-off-by: Mark Brown --- Reading git-format-patch failed