commit | f97ef759999485df485fe19a440d6af02d561140 | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Thu Sep 10 16:22:03 2015 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Sep 20 19:33:29 2015 -0700 |
tree | 5fb3e3b27140600043946616400e64822f8e3cf0 | |
parent | 6894fdaeaa2a653c3232b11926df8c7e8b5bd83c [diff] |
drivers/misc/sgi-gru: fix possible NULL dereference If mmu_find_ops() returns NULL then we are allocating memory for gms using kzalloc. But kzalloc can return NULL and we were dereferencing gms in gru_dbg(). Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>