Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp820333imm; Wed, 26 Sep 2018 07:18:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV60AYmS8pmf6Z6gk7cnuKxUKST9+51oiIsHRDd0l2EtVh/5ma2n0up+y6HvH1MsZVzVMrm3x X-Received: by 2002:a17:902:42e2:: with SMTP id h89-v6mr6263928pld.69.1537971505578; Wed, 26 Sep 2018 07:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537971505; cv=none; d=google.com; s=arc-20160816; b=vE+F4nRaC2S5J59EfQ7eN8q4AvgyuUDx9IUMNsaoDgWfwEhp78JsDczhFmIbNPAmSa pLeOsrMzUbv7O7M2hb06KikFHL5+g5dwefy9gTksEALCd2r7j9B2vGsaKpyQ1XrlcrPM T52TR5lo0Qb6R7KPaOGCaRF0n2XNGsJAp4gj+stsHK7705fWPUPnm1r5hEcJt5dNbrp1 OU9GvHicfCCw2/WeOZWdXzGq0ju9WNLh+I5V74w1v18eQVuoVvB8tiCYQgqPR+FV8Anq DOKfCC/FSmLtw31yGJFON0yxQSe7Psfp8JPD5SZr/o79NPSa6wpe+OzKiQOA0g8V5bSP QInA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=/DchJTrUkEpVF8dshPLJsZKZiDKYm9rV0yoQggKTxyE=; b=YHoTbp6Sp+xS3Da4GbWvfqzwQGdRrIFch+LA9NJtafzyVaLyeyxY5ekfqRpTpSyueA JTNyoBXd3dcolNC2bfrbxWlA0TS2kVdYuJCEVwXZK0SMd0jsg1VXRK1AJ0UusXbHeFr1 jOyqYTrJ9jOT4zHouzrrhN/beH05xPayrO7oExM7U+TIyFEcw3JTZYOG25uSgyfEQgOn OVSx/6onvsPXyNv08tUyXOlWd+bPIfdE+7w+BzFctn+Wq+gy5YQ8GmeLzWCKg6dxlr+4 4gKtqyOGVK7viz8kdlGpYzAX9GbNyy52HK+7Eyb/3xX2dpE5Evv0IIHkBVGXDbnIK+uh a0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=putyzTXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r205-v6si5438761pgr.634.2018.09.26.07.18.08; Wed, 26 Sep 2018 07:18:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=putyzTXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbeIZU3p (ORCPT + 99 others); Wed, 26 Sep 2018 16:29:45 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38212 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbeIZU3p (ORCPT ); Wed, 26 Sep 2018 16:29:45 -0400 Received: by mail-wm1-f68.google.com with SMTP id z16-v6so2557937wmi.3 for ; Wed, 26 Sep 2018 07:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=/DchJTrUkEpVF8dshPLJsZKZiDKYm9rV0yoQggKTxyE=; b=putyzTXKZFw4teh2j8pqGjJ1mueHXBUbBd8CzT8OnRNGS9PzyyPm4efSbCqDTm1ESZ QOX1k9o8JCE3eHoSbfSKspmQb7i11MRcOLqxtvOjARs0rCvf52IaWc2cYudw2Uy842x1 YLe11HRgvDid8SlZ8et/0uNNgddb/Ae+AtkHFYjheo73L0FAvRryuQdF3c8GiJio0ux2 aHzB69L/edQGDxNtl1n6IbKLbPMX0Re4qdRBHjyW7H8iEW5sW1UPZ+dnb3RX7J3aMJ05 vnAMscaoKlJfryRGAONks7rulIPnFNwLQvCPLJmem8sTRqlccqlRd78p7C6chpId0Gbw 2dYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/DchJTrUkEpVF8dshPLJsZKZiDKYm9rV0yoQggKTxyE=; b=Bh4EH3B/j10Flf7bIHU2nN2CfhyCSyTG7RGWAJlOsSV2knlhSlQsDQjRSjRcnmsh+0 1xQ/DS9aRNz+Vf/IZ7MkWeYlfl70PX0q+QhCHNuAXRwNw3lXrtTNtrGKMr+chsBq4X2n dhce4ZigfGvknmhjr5YXoHmI8sCJcrhAENO60Tcar9SKQSagH2i476nPw4oA9ke2O5DH rd4krYCZuuSgCuI7LC4sJEkENOwpTVvYZlw/Eih88W+4c4ktfWk0JxSE9oHnAkBYXNAw q5X7ubnI8OoUiJiK2jxKFrur7cf9nVghptUuIFQpJXoj0C6AOmMtFj1t7ZaudUE5M4xj yCEA== X-Gm-Message-State: ABuFfohk70S3ZM/AvFHsLjk0Az2oE5u1yDlDEJrp7KdtE38gU1jL5n3C 2sWhJNO5TARGU3ecVqruj9d9Ii2pqx0= X-Received: by 2002:a1c:1805:: with SMTP id 5-v6mr4682385wmy.25.1537971394102; Wed, 26 Sep 2018 07:16:34 -0700 (PDT) Received: from localhost.localdomain ([95.144.165.37]) by smtp.gmail.com with ESMTPSA id v14-v6sm3209974wmh.41.2018.09.26.07.16.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 07:16:33 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: linux-kernel@vger.kernel.org Cc: tursulin@ursulin.net, tvrtko.ursulin@linux.intel.com, Tvrtko Ursulin Subject: [PATCH 0/6] lib/scatterlist: sgl API fixes and cleanups Date: Wed, 26 Sep 2018 15:16:19 +0100 Message-Id: <20180926141625.17727-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tvrtko Ursulin Mostly same fixes and cleanups I've sent earlier in the year, but with some patches dropped and some split into smaller ones as per request. Tvrtko Ursulin (6): lib/scatterlist: Use natural long for sgl_alloc(_order) length parameter lib/scatterlist: Use consistent types in sgl API lib/scatterlist: Skip requesting zeroed allocations in sgl_alloc_order lib/scatterlist: Do not leak pages when high-order allocation fails lib/scatterlist: Use appropriate type for elem_len in sgl_alloc_order lib/scatterlist: Fix overflow check in sgl_alloc_order include/linux/scatterlist.h | 13 +++++++------ lib/scatterlist.c | 33 +++++++++++++++++---------------- 2 files changed, 24 insertions(+), 22 deletions(-) -- 2.17.1