Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315785

Re: [PATCH] vt: correctly check return value of class_create

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] vt: correctly check return value of class_create
Date 2016-01-24 01:00 +0100
Message-ID <qUgg2-4Hk-7@gated-at.bofh.it> (permalink)
References <qUdrP-8sv-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jan 23, 2016 at 03:52:46PM -0500, Insu Yun wrote:
> Since class_create can be failed in memory pressure,

In this case, really?  At init time?

> its return value should be checked and correctly handled.

You didn't correctly handle it, you leaked memory and other resources :(

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] vt: correctly check return value of class_create Insu Yun <wuninsu@gmail.com> - 2016-01-23 22:00 +0100
  Re: [PATCH] vt: correctly check return value of class_create Greg KH <gregkh@linuxfoundation.org> - 2016-01-24 01:00 +0100

csiph-web