lkml.org 
[lkml]   [2012]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [patch -resend] 9p: fix min_t() casting in p9pdu_vwritef()
    From
    From: Dan Carpenter <dan.carpenter@oracle.com>
    Date: Wed, 27 Jun 2012 12:01:41 +0300

    > I don't think we're actually likely to hit this limit but if we do
    > then the comparison should be done as size_t. The original code
    > is equivalent to:
    > len = strlen(sptr) % USHRT_MAX;
    >
    > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

    Applied, thanks Dan.


    \
     
     \ /
      Last update: 2012-06-28 01:21    [W:3.187 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site