lkml.org 
[lkml]   [2010]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] vt: Fix refcounting use
> This is the only bit that immediately stands out..
> maybe?
> if (rep || !tty) {
> if (tty)
> tty_kref_put(tty);
> return;
> }

tty_kref_put(NULL) is valid - otherwise a lot of other code (and
programmers) would go nuts..

Alan


\
 
 \ /
  Last update: 2010-02-17 17:35    [W:0.029 / U:4.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site