diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-11 01:47:23 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-11 02:32:30 +0300 |
commit | dbac61a3f2afac562efa51b0a196ed71b6b8d109 (patch) | |
tree | c9bbf5dd8f0a086143df9908146ea8ece1d9bb28 /README | |
parent | 06226226773d56685de6ee9eb3f5d668e9f772ee (diff) | |
download | linux-dbac61a3f2afac562efa51b0a196ed71b6b8d109.tar.xz |
mm/memory_hotplug.c: add NULL check to avoid potential NULL pointer dereference
The NULL check at line 1226: if (!pgdat), implies that pointer pgdat
might be NULL.
rollback_node_hotadd() dereferences this pointer. Add NULL check to
avoid a potential NULL pointer dereference.
Addresses-Coverity-ID: 1369133
Link: http://lkml.kernel.org/r/20170530212436.GA6195@embeddedgus
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions