public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/4] staging: vt6655: Implement allocation failure handling
@ 2022-09-28 17:21 Nam Cao
  2022-09-28 17:21 ` [RFC PATCH v2 1/4] staging: vt6655: remove redundant if condition Nam Cao
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nam Cao @ 2022-09-28 17:21 UTC (permalink / raw)
  To: forest, gregkh, dan.carpenter
  Cc: namcaov, philipp.g.hortmann, linux-kernel, linux-staging

This driver does not handle allocation failure when receiving data very
well. This patchset implements better handling in the case of allocation
failure.

Also do some necessary clean-up to implement this.

v2:
  - squash 3 commits that were doing a single thing
  - add new commit which removes a redundant assignment
  - take device_init_rx_desc() out of unnecessary else condition.
  - remove return statement at the end of void function
  - add a missing rd = rd->next statement in device_rx_srv(): because
    we already drop the current buffer, we should move on to the next
    buffer in the ring where new data will be written to.

Nam Cao (4):
  staging: vt6655: remove redundant if condition
  staging: vt6655: change vnt_receive_frame return type to void
  staging: vt6655: remove redundant assignment
  staging: vt6655: implement allocation failure handling

 drivers/staging/vt6655/device_main.c | 40 +++++++++++++++++-----------
 drivers/staging/vt6655/dpc.c         |  8 +++---
 drivers/staging/vt6655/dpc.h         |  2 +-
 3 files changed, 28 insertions(+), 22 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-29 20:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28 17:21 [RFC PATCH v2 0/4] staging: vt6655: Implement allocation failure handling Nam Cao
2022-09-28 17:21 ` [RFC PATCH v2 1/4] staging: vt6655: remove redundant if condition Nam Cao
2022-09-28 17:21 ` [RFC PATCH v2 2/4] staging: vt6655: change vnt_receive_frame return type to void Nam Cao
2022-09-28 17:21 ` [RFC PATCH v2 3/4] staging: vt6655: remove redundant assignment Nam Cao
2022-09-28 17:21 ` [RFC PATCH v2 4/4] staging: vt6655: implement allocation failure handling Nam Cao
2022-09-29 20:30 ` [RFC PATCH v2 0/4] staging: vt6655: Implement " Philipp Hortmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox