Re: [PATCH v1 1/5] treewide: use get_random_u32_below() instead of deprecated function

2022-10-22 Thread SeongJae Park
Hi Jason, Cc-ing da...@lists.linux.dev and linux...@kvack.org. On Fri, 21 Oct 2022 21:43:59 -0400 "Jason A. Donenfeld" wrote: > This is a simple mechanical transformation done by: > > @@ > expression E; > @@ > - prandom_u32_max(E) > + get_random_u32_below(E) > > Signed-off-by: Jason A.

Re: [PATCH] powerpc/64s/interrupt: Fix clear of PACA_IRQS_HARD_DIS when returning to soft-masked context

2022-10-22 Thread Sachin Sant
> On 22-Oct-2022, at 10:52 AM, Nicholas Piggin wrote: > > Commit a4cb3651a1743 ("powerpc/64s/interrupt: Fix lost interrupts when > returning to soft-masked context") fixed the problem of pending irqs > pending cleared when clearing the HARD_DIS bit, but then it didn't clear > the bit at all.

Re: [PATCH v1 0/5] convert tree to get_random_u32_{below,above,between}()

2022-10-22 Thread Greg Kroah-Hartman
On Fri, Oct 21, 2022 at 09:43:58PM -0400, Jason A. Donenfeld wrote: > Hey everyone, > > Here's the second and final tranche of tree-wide conversions to get > random integer handling a bit tamer. It's predominantly another > Coccinelle-based patchset. > > First we

[PATCH] macintosh: fix possible memory leak in macio_add_one_device()

2022-10-22 Thread Yang Yingliang
dev_set_name() in macio_add_one_device() allocates memory for name, it need be freed when of_device_register() fails, call put_device() to give up the reference that hold in device_initialize(), so that it can be freed in kobject_cleanup() when the refcount hit to 0. macio device is freed in

Re: [PATCH v1 0/5] convert tree to get_random_u32_{below,above,between}()

2022-10-22 Thread Jakub Kicinski
On Sat, 22 Oct 2022 07:47:06 +0200 Jason A. Donenfeld wrote: > On Fri, Oct 21, 2022 at 10:32:42PM -0700, Jakub Kicinski wrote: > > But whatever. I mean - hopefully there aren't any conflicts in the ~50 > > networking files you touch. I just wish that people didn't pipe up with > > the tree wide