diff for duplicates of <2214433.RePI7YjxKq@diplodocus> diff --git a/a/1.txt b/N1/1.txt index ea3abd8..574c8f6 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -22,7 +22,7 @@ Better in every way than a crazy variable alloc if you ask me. > - FIELD_OFFSET(struct NDIS_802_11_WEP, > - KeyMaterial)), GFP_ATOMIC); > + pwep = kzalloc(sizeof(*pwep), GFP_ATOMIC); -> if (pwep = NULL) +> if (pwep == NULL) > return -ENOMEM; > - memset(pwep, 0, sizeof(struct NDIS_802_11_WEP)); diff --git a/a/content_digest b/N1/content_digest index 52af0e6..ae1de18 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020160130144110.GE3462@mwanda\0" "From\0Joshua Clayton <stillcompiling@gmail.com>\0" "Subject\0Re: [patch] staging: rtl8712: memory corruption in wpa_set_encryption()\0" - "Date\0Sun, 31 Jan 2016 00:37:49 +0000\0" + "Date\0Sat, 30 Jan 2016 16:37:49 -0800\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Cc\0Larry Finger <Larry.Finger@lwfinger.net>" Florian Schilhabel <florian.c.schilhabel@googlemail.com> @@ -40,7 +40,7 @@ "> -\t\t\t\tFIELD_OFFSET(struct NDIS_802_11_WEP,\n" "> -\t\t\t\tKeyMaterial)), GFP_ATOMIC);\n" "> +\t\t\tpwep = kzalloc(sizeof(*pwep), GFP_ATOMIC);\n" - "> \t\t\tif (pwep = NULL)\n" + "> \t\t\tif (pwep == NULL)\n" "> \t\t\t\treturn -ENOMEM;\n" "> -\t\t\tmemset(pwep, 0, sizeof(struct NDIS_802_11_WEP));\n" "\n" @@ -49,4 +49,4 @@ "> \t\t\tpwep->Length = wep_key_len +\n" "> \t\t\t\t FIELD_OFFSET(struct NDIS_802_11_WEP," -0c6ae24034c4a338be74c9cb38324d7bac55b1e7fe9bf71677b1d86fec7b51e4 +c49497a00acef7d1e1e040c94d32f289099df5ce62bf15bab138ed9bf1dce845
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.