diff options
| author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2016-12-12 23:13:27 +0530 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-07-04 11:51:31 +0200 |
| commit | b5bfd2739189db70ec4448140639d15a2445e842 (patch) | |
| tree | 62b264cc68b743024585121e8c3411db67441683 /mm/memory_hotplug.c | |
| parent | 02a1e447bf1d0fc303ae362800dd7813b70bc372 (diff) | |
ata: sata_mv:- Handle return value of devm_ioremap.
commit 064c3db9c564cc5be514ac21fb4aa26cc33db746 upstream.
Here, If devm_ioremap will fail. It will return NULL.
Then hpriv->base = NULL - 0x20000; Kernel can run into
a NULL-pointer dereference. This error check will avoid
NULL pointer dereference.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions
