Bluetooth: fix invalid-bdaddr quirk for non-persistent setup
[platform/kernel/linux-starfive.git] / net / sunrpc / cache.c
index c3c693b..f075a9f 100644 (file)
@@ -677,7 +677,7 @@ static void cache_limit_defers(void)
 
        /* Consider removing either the first or the last */
        if (cache_defer_cnt > DFR_MAX) {
-               if (prandom_u32() & 1)
+               if (prandom_u32_max(2))
                        discard = list_entry(cache_defer_list.next,
                                             struct cache_deferred_req, recent);
                else