staging: dgrp: check for a valid proc dir entry pointer
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 22 Jan 2013 08:38:17 +0000 (03:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 16:58:44 +0000 (08:58 -0800)
commit7b63c5772fd6eea71b1332570812297e45403126
treee6470434c08799c1c17fc3e72a1060b2afea99e3
parentb194218dba531b9c36080d29d10fdf9ef96a15bf
staging: dgrp: check for a valid proc dir entry pointer

while proc_create fails, the register_proc_table can do a derefernce of the
null pointer causing to oops the system, instead check for a valid pointer
at register and unregister

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_specproc.c