From 9d3405dbbbd8418a095301d495da65bc3bc5f806 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 31 Aug 2013 19:42:56 +0800 Subject: [PATCH] spi: rspi: Add spi_master_get() call to prevent use after free In rspi_remove(), current code dereferences rspi after spi_unregister_master(), thus add an extra spi_master_get() call is necessary to prevent use after free. Current code already has an extra spi_master_put() call in rspi_remove(), so this patch just adds a spi_master_get() call rather than a spi_master_get() with spi_master_put() calls. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-format-patch failed