Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756498AbWKVS5j (ORCPT ); Wed, 22 Nov 2006 13:57:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756508AbWKVS5j (ORCPT ); Wed, 22 Nov 2006 13:57:39 -0500 Received: from bay0-omc1-s15.bay0.hotmail.com ([65.54.246.87]:26190 "EHLO bay0-omc1-s15.bay0.hotmail.com") by vger.kernel.org with ESMTP id S1756498AbWKVS5i (ORCPT ); Wed, 22 Nov 2006 13:57:38 -0500 Message-ID: X-Originating-IP: [80.178.108.101] X-Originating-Email: [yan_952@hotmail.com] From: "Burman Yan" To: linux-kernel@vger.kernel.org Cc: trivial@kernel.org Subject: [PATCH 2.6.19-rc6] serial: replace kmalloc+memset with kzalloc Date: Wed, 22 Nov 2006 20:57:33 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_3a44_42ad_4cce" X-OriginalArrivalTime: 22 Nov 2006 18:57:35.0302 (UTC) FILETIME=[127E8E60:01C70E68] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 16347 Lines: 283 This is a multi-part message in MIME format. ------=_NextPart_000_3a44_42ad_4cce Content-Type: text/plain; format=flowed Hi. This patch replaces kmalloc+memset with kzalloc in serial driver sources. Regards Yan Burman _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ------=_NextPart_000_3a44_42ad_4cce Content-Type: application/octet-stream; name="kzalloc_serial.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="kzalloc_serial.patch" UmVwbGFjZSBrbWFsbG9jK21lbXNldCB3aXRoIGt6YWxsb2MgCgpTaWduZWQt b2ZmLWJ5OiBZYW4gQnVybWFuIDx5YW5fOTUyQGhvdG1haWwuY29tPgoKZGlm ZiAtcnVicCBsaW51eC0yLjYuMTktcmM1X29yaWcvZHJpdmVycy9zZX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mICghaW5mbykK IAkJcmV0dXJuIC1FTk9NRU07Ci0JbWVtc2V0KGluZm8sIDAsIHNpemVvZiAo KmluZm8pKTsKIAlpbmZvLT5wX2RldiA9IGxpbms7CiAJbGluay0+cHJpdiA9 IGluZm87CiAK ------=_NextPart_000_3a44_42ad_4cce-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/