[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <86eeee11-38c1-4754-b72f-7606b137d426@suse.com>
Date: Mon, 1 Sep 2025 10:10:07 +0200
From: Oliver Neukum <oneukum@...e.com>
To: Alex Tran <alex.t.tran@...il.com>, stern@...land.harvard.edu
Cc: gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
 usb-storage@...ts.one-eyed-alien.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] usb: storage: sddr09: move write buffers into info
 struct
Hi,
On 8/31/25 21:22, Alex Tran wrote:
> +static int sddr09_init_card_buffers(struct us_data *us)
> +{
> +	struct sddr09_card_info *info = (struct sddr09_card_info *)us->extra;
> +	unsigned int pagelen, blocklen, len;
> +
> +	/*
> +	 * blockbuffer is used for reading in the old data, overwriting
> +	 * with the new data, and performing ECC calculations
> +	 */
> +	pagelen = (1 << info->pageshift) + (1 << CONTROL_SHIFT);
> +	blocklen = (pagelen << info->blockshift);
> +	info->blockbuffer = kmalloc(blocklen, GFP_NOIO);
there is no reason for GFP_NOIO under these circumstances. Please
use GFP_KERNEL.
	Regards
		Oliver
Powered by blists - more mailing lists