Commits
![Sudip Mukherjee](https://secure.gravatar.com/avatar/6525c0323de5f56d5b4364141d6e1174.jpg?s=96&d=mm)
Sudip Mukherjee committed bba57f8f948
drivers/misc/sgi-gru: fix dereference of ERR_PTR gru_alloc_gts() can fail and it can return ERR_PTR(errvalue). We should not dereference it if it has returned error. And incase it has returned error then wait for some time and try again. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Acked-by: Dimitri Sivanich <sivanich@sgi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>