commit | 696b4c476c37dfd5c741932cdba60d82a0580146 | [log] [tgz] |
---|---|---|
author | Kenneth Heitke <kheitke@codeaurora.org> | Wed Jun 26 18:14:56 2013 -0600 |
committer | Gilad Avidov <gavidov@codeaurora.org> | Thu Jul 25 11:05:33 2013 -0600 |
tree | ae3dfd42629dfbbf703985ed07f7716cb891cd71 | |
parent | 83789a7935f9ea3a63a43eecf10dbd029a555f44 [diff] |
spmi: Add check for NULL and invalid controller pointer Replace the BUG_ON() check with a NULL pointer check and verify that the controller type is set appropriately. This prevents a system crash due to invalid input. Change-Id: I858980ad54ba0d764219049a20b4ca3e9b77f72e Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>