memrar: Address kernel oops during resource cleanup
authorOssama Othman <ossama.othman@intel.com>
Mon, 19 Jul 2010 08:32:26 +0000 (09:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 21:30:32 +0000 (14:30 -0700)
commit05e2408d4324ae132eda6530cce0aa24e79f0c41
tree51389832f921fd435e2986165abd6ef94fdaad5a
parent4cae2597f5455a3c8ffc6c200b34e15c83184579
memrar: Address kernel oops during resource cleanup

Some delayed initialization is performed in this driver.  Make sure
resources that are used during driver clean-up (e.g. during driver's
release() function) are fully initialized before first use.  This is
particularly important for the case when the delayed initialization
isn't completed, leaving behind a partially initialized driver.

Such a scenario can occur when RAR is not available on the platform,
and the driver is release()d.

Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/memrar/memrar_handler.c