[lkml]   [2019]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: usb: sr9800: fix uninitialized local variable
From: Valentin Vidic <>
Date: Tue, 15 Oct 2019 22:20:20 +0200

> Make sure res does not contain random value if the call to
> sr_read_cmd fails for some reason.
> Reported-by:
> Signed-off-by: Valentin Vidic <>


But often in situation like this a failed read can more aptly be indicated by
an all-1's value.

 \ /
  Last update: 2019-10-16 06:03    [W:0.031 / U:2.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site