From: Christian Borntraeger Date: Mon, 5 Feb 2007 20:16:54 +0000 (+0100) Subject: [S390] cpcmd with vmalloc addresses. X-Git-Tag: v2.6.21-rc2~42^2~21^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bda3563fb28e3a4260ac3566cf11700792a336bb;p=pandora-kernel.git [S390] cpcmd with vmalloc addresses. Change the bounce buffer logic of cpcmd. diag8 needs _real_ memory below 2GB. Therefore vmalloced data does not work. As the data might cross a page boundary, we cannot use virt_to_page either. The solution is to use virt_to_page only in the check for a bounce buffer. There was a redundant check for response==NULL. response < 2GB contains this check as well. I also removed the rlen==0 check, since rlen=0 and response!=NULL would be a caller bug and response==NULL is already checked. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed