From: Herton Ronaldo Krzesinski Date: Tue, 30 Mar 2010 16:35:38 +0000 (-0300) Subject: [SCSI] advansys: fix narrow board error path X-Git-Tag: v2.6.34-rc7~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a908c1aa4d3898f62e2cb8af6936b16503ab3e6;p=pandora-kernel.git [SCSI] advansys: fix narrow board error path Error handling on advansys_board_found is fixed, because it's buggy in the case we have an ASC_NARROW_BOARD set and failure happens on AscInitAsc1000Driver step: it was freeing items of wrong struct in the dvc_var union of struct asc_board, which could lead to an oops in the case we set some of the fields in struct of narrow board as code was choosing to always freeing wide board fields, and not everything was being freed/released properly. Signed-off-by: Herton Ronaldo Krzesinski Signed-off-by: James Bottomley --- Reading git-diff-tree failed