]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1ebab6f6a7912c09b90c1483c6c9a5b84dbc690
tree51389832f921fd435e2986165abd6ef94fdaad5a
parenta85f576d941e0a87a4e38d6d881bde3da5add5da
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