Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00966c0a authored by Stefan Haberland's avatar Stefan Haberland Committed by Heiko Carstens
Browse files

[S390] dasd: use GFP_DMA for fba private data allocation



allocating dasd_fba_private without GFP_DMA results in IO error
during read device characteristics of a FBA disk

Signed-off-by: default avatarStefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 35b58b02
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -125,7 +125,8 @@ dasd_fba_check_characteristics(struct dasd_device *device)


	private = (struct dasd_fba_private *) device->private;
	private = (struct dasd_fba_private *) device->private;
	if (private == NULL) {
	if (private == NULL) {
		private = kzalloc(sizeof(struct dasd_fba_private), GFP_KERNEL);
		private = kzalloc(sizeof(struct dasd_fba_private),
				  GFP_KERNEL | GFP_DMA);
		if (private == NULL) {
		if (private == NULL) {
			DEV_MESSAGE(KERN_WARNING, device, "%s",
			DEV_MESSAGE(KERN_WARNING, device, "%s",
				    "memory allocation failed for private "
				    "memory allocation failed for private "