lkml.org 
[lkml]   [2022]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next v2 1/9] blk-iocost: cleanup ioc_qos_write() and ioc_cost_model_write()
> +	ret = nbytes;

ret is an int which bytes is a size_t. So we at least need a ssize_t
instead for ret, and even that assumes nbytes never overflows a ssize_t.

\
 
 \ /
  Last update: 2022-11-30 16:56    [W:0.114 / U:1.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site