[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8735klx0fv.fsf@igel.home>
Date: Mon, 14 Feb 2022 10:27:32 +0100
From: Andreas Schwab <schwab@...ux-m68k.org>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'Helge Deller' <deller@....de>,
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"linux-parisc@...r.kernel.org" <linux-parisc@...r.kernel.org>
Subject: Re: [PATCH] fat: Use pointer to d_name[0] in put_user() for compat
case
On Feb 14 2022, David Laight wrote:
> The 'bug' is caused by put_user() trying to do:
> __typeof__(ptr) __ptr = ptr;
> where __typeof__ is returning char[n] not char *.
>
> I've tried a few things but can't get __typeof__ to
> generate a suitable type for both a simple type and array.
Does it work to use __typeof__(&*(ptr))?
--
Andreas Schwab, schwab@...ux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Powered by blists - more mailing lists