This patch should work fine and dandy, also addressed the possible race condition.
http://files.looncraz.net/Add-hardware-cursor-2.patchIf you want to replay my changes, or just patch from the last patch forward, you can download the full patch-set:
http://files.looncraz.net/HWCursor-Patchset.zip --The loon