Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1319281rwn; Thu, 15 Sep 2022 13:56:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FnhpucA4vlMwguDASH53SEbGv064tYo9yAkext3WecdR58QJ0DThrAr3dR+gIfUA7EM86 X-Received: by 2002:a17:907:9602:b0:780:8c9f:f99a with SMTP id gb2-20020a170907960200b007808c9ff99amr802093ejc.465.1663275382622; Thu, 15 Sep 2022 13:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663275382; cv=none; d=google.com; s=arc-20160816; b=ufr2hqzg1PQ6qqM+D1+8eO6dzM8nEm65BMYgwIGM2CQ4ntV8PS+oUZczdDyDbbJBws eu2FIj1+yZ3k/Dq0sZYwPvpjEfKTJn1Rh7vYwZ1taPmCXea+T+I/cd2xSYi7+6gWoPAW WD1JqRLTYHpObBoZN0fOHoFdBW00OwRFYXbQalDp0EwT4Khcv9IeIwDgE/gwssg4LtrY Nm+aTqU+13f/Gn6L2bluxvxKb84mFfgJFKD/4zkoCFdOhdDBUu1EV5g/Emn//Sk0Z83Z 6zoKny3mZGOVevQN+D7gpEm4HmJAkcfBOQgu1beLaskPp4hUzqMGDU1lf8Wjn+ZjV/9c LAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=J6g4J+gYjXd8OHWCzm+tXzp/795vOtzfgmy4dG6lLeU=; b=DFJWMbd/YlrPsgFx/XcX6dNy8kMCpk65GmA8E/pfZkVNMl9GotYXo6oEoJL/2mRbaf j/vxJJWjnXNOuS6QjPZsLwnJFgAtUmXRZCeDNRNynXw5eUb46Ba1nBR39moSbLunEnYn SFvobBY0RK2mLpIWxqoeHjvq1EfC3j4pcl1xiJ/7P81J5ILB1qC+JWXEbm1EKb3i7GcB pnxXtXijpgh13PyDVOw8gQXwngpOEIC13KflB8oX0xtDt1QJZW2tGsbdR+aFjI9Fg7UC yc7UChqv0zxFK4kVG8wX3hvvI8JmlDWgv/BlMr43uIiG8Z4qCarGin7pU2Txvs76vsNu Hmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Qw3+cE33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd11-20020a170907628b00b00741a1daf191si18510482ejc.401.2022.09.15.13.55.56; Thu, 15 Sep 2022 13:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Qw3+cE33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbiIOUaA (ORCPT + 99 others); Thu, 15 Sep 2022 16:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiIOU37 (ORCPT ); Thu, 15 Sep 2022 16:29:59 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D024D30F77 for ; Thu, 15 Sep 2022 13:29:57 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id q21so28678815edc.9 for ; Thu, 15 Sep 2022 13:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=J6g4J+gYjXd8OHWCzm+tXzp/795vOtzfgmy4dG6lLeU=; b=Qw3+cE33st4nv2CtQj/v2TRUZnQND1xzsKByP30WefXFUPe9J/FrN/zP69U4d/+rwz gRVzYTXK1qaVbO7+ZS2CVOoDvGXDcyFK4VrQ544RutlD38+j39tzNt9zmZ8dYSogJ1I4 qI2CvdKpYQVS3Ig2Ee3dtjdxqgh9ntkVcTu5NefWpbJG/5MJKSzQK1rs/4A1U+M0wpJR 2wowSWLnafMZud15464KUegsXrkwZNr4oOMtiNPu09LmpPr7zuFCwXBP+lhyiVjstxN5 kDuC1aWUM2e9jOXW8Z3/9Iv2kuNlQ3neYNNwAbLEpgqwqMTQ8GqJTl62CdhqKXYL6I/R TnYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=J6g4J+gYjXd8OHWCzm+tXzp/795vOtzfgmy4dG6lLeU=; b=2vWVVTgTrXfY3iEn01FVgbQyg0OY0pXejST4+RC8ad/WTrxC/qKs1GUuGFkflQ4qeu WUm/xSGOOQqnwMkGWFJ5woYSez+6iMrxcBFz+gr96N9tBDfswKaYCyW7At/J1Oa/n6H5 e6ry9sVzNMLLwzgIC4Lf7SvqZ+sAw5AcFIgcH/rRSQSInTAxVnsMNNpDyLKINwx64aPp upvnh0V8pRYtCpV3T5AMd/zOOUnL1hULagH27uSfuDFTMM7Ekc483UUiboXbQuO2nObh hYaEEvokiNMsaoSw/0k37XDH6mx1Yv7obttMZ090pe1ZxYriLdPLdgEcB+YZDllA9uRf qBDw== X-Gm-Message-State: ACrzQf0nG1rJGyIk3bqPJ0DFfTrPu3RAh1BwFj1emhtY5et8gPNlPJne 8vJ3QHSC1feG6+eUzQxKchM= X-Received: by 2002:a05:6402:51c6:b0:451:6379:81cb with SMTP id r6-20020a05640251c600b00451637981cbmr1334443edd.372.1663273796153; Thu, 15 Sep 2022 13:29:56 -0700 (PDT) Received: from localhost.localdomain (ip-217-105-46-43.ip.prioritytelecom.net. [217.105.46.43]) by smtp.gmail.com with ESMTPSA id ci25-20020a170906c35900b0072b3406e9c2sm9607295ejb.95.2022.09.15.13.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 13:29:55 -0700 (PDT) From: Nam Cao To: forest@alittletooquiet.net, gregkh@linuxfoundation.org Cc: namcaov@gmail.com, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [RFC PATCH 0/5] staging: vt6655: Implement allocation failure handling Date: Thu, 15 Sep 2022 22:29:31 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver does not handle allocation failure when receiving data very well. This patchset implements better handling in the case of allocation failure. Nam Cao (5): staging: vt6655: remove redundant if condition staging: vt6655: change vnt_receive_frame return type to void staging: vt6655: split device_alloc_rx_buf staging: vt6655: change device_alloc_rx_buf's argument staging: vt6655: implement allocation failure handling drivers/staging/vt6655/device_main.c | 41 ++++++++++++++++++---------- drivers/staging/vt6655/dpc.c | 8 +++--- drivers/staging/vt6655/dpc.h | 2 +- 3 files changed, 31 insertions(+), 20 deletions(-) -- 2.25.1