From: David S. Miller Date: Thu, 27 May 2010 04:17:29 +0000 (-0700) Subject: sunsu: Fix use after free in su_remove(). X-Git-Tag: v2.6.35-rc6~10^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9616ff434d96303689391af3d6e1c845d233405f;p=pandora-kernel.git sunsu: Fix use after free in su_remove(). Real serial port 'up' objects are statically allocated from an array in the driver. Keyboard and mouse ports, on the other hand, are dynamically allocated. Unfortunately, we free these dynamic 'up' objects before we unmap the I/O registers. Rearrange su_remove() so that this does not happen. Noticed by Julia Lawall. Signed-off-by: David S. Miller --- Reading git-diff-tree failed