From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UFRiQ-0005na-7d for barebox@lists.infradead.org; Tue, 12 Mar 2013 16:06:14 +0000 Received: by mail-la0-f54.google.com with SMTP id gw10so1469lab.13 for ; Tue, 12 Mar 2013 09:05:52 -0700 (PDT) MIME-Version: 1.0 From: "Renaud C." Date: Tue, 12 Mar 2013 17:05:11 +0100 Message-ID: Content-Type: multipart/mixed; boundary=f46d04083877b2af4804d7bc76c1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/7] gadget: possible null pointer dereference fix To: barebox --f46d04083877b2af4804d7bc76c1 Content-Type: multipart/alternative; boundary=f46d04083877b2af4504d7bc76bf --f46d04083877b2af4504d7bc76bf Content-Type: text/plain; charset=ISO-8859-1 This patch fix a possible null pointer dereference exception because of a missing null check on cdev->config --f46d04083877b2af4504d7bc76bf Content-Type: text/html; charset=ISO-8859-1
This patch fix a possible null pointer dereference exception because of a missing null check on cdev->config


--f46d04083877b2af4504d7bc76bf-- --f46d04083877b2af4804d7bc76c1 Content-Type: application/octet-stream; name="gadget-null-pointer-dereference-fix.patch" Content-Disposition: attachment; filename="gadget-null-pointer-dereference-fix.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_he794erk0 RnJvbSAzN2I3ZGM3ZjIyMzJiNTRmOGZjOGE1NTkwMjQ1YWYzN2ZlN2Q4Mjk5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBDZXJyYXRvIFJlbmF1ZCA8ci5jZXJyYXRvQHRpbC10ZWNobm9s b2dpZXMuZnI+CkRhdGU6IFRodSwgMjggRmViIDIwMTMgMTU6MDQ6NTMgKzAxMDAKU3ViamVjdDog W1BBVENIID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KGMgJiYgYy0+c2V0dXApCi0JCQkJdmFsdWUgPSBjLT5zZXR1cChjLCBj dHJsKTsKKwkJCWlmICh2YWx1ZSA8IDAgJiYgIWYpIHsKKwkJCQlzdHJ1Y3QgdXNiX2NvbmZpZ3Vy YXRpb24JKmM7CisKKwkJCQljID0gY2Rldi0+Y29uZmlnOworCQkJCWlmIChjICYmIGMtPnNldHVw KQorCQkJCQl2YWx1ZSA9IGMtPnNldHVwKGMsIGN0cmwpOworCQkJfQogCQl9CiAKIAkJZ290byBk b25lOwotLSAKMS43LjIuNQoK --f46d04083877b2af4804d7bc76c1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --f46d04083877b2af4804d7bc76c1--