Messages in this thread Patch in this message | | | Date | Wed, 4 Aug 2021 16:15:50 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH 1/6] staging: r8188eu: Remove wrappers for kalloc() and kzalloc() |
| |
On Mon, Aug 02, 2021 at 10:15:41AM -0500, Larry Finger wrote: > diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c.rej b/drivers/staging/r8188eu/core/rtw_br_ext.c.rej > new file mode 100644 > index 000000000000..18113389acce > --- /dev/null > +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c.rej ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;) Something went wrong.
(I'm not going to review the rest of this series.)
> @@ -0,0 +1,11 @@ > +--- drivers/staging/r8188eu/core/rtw_br_ext.c > ++++ drivers/staging/r8188eu/core/rtw_br_ext.c > +@@ -420,7 +420,7 @@ static void __nat25_db_network_insert(st > + } > + db = db->next_hash; > + } > +- db = (struct nat25_network_db_entry *) rtw_malloc(sizeof(*db)); > ++ db = kmalloc(sizeof(*db), GFP_KERNEL); > + if (db == NULL) { > + spin_unlock_bh(&priv->br_ext_lock); > + return;
regards, dan carpenter
| |