Project

General

Profile

Actions

Bug #7948

open

linux:alloc: misleading comment

Added by Vadim Mutilin about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Requirement specifications
Target version:
-
Start date:
02/03/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

On drivers/video/fb.ko there is a comment

 Nothing should be allocated at the end.

but there is no allocation in the trace, just kfree.

Actually the comment should mention something different including that memory may be freed without alloc.
Or may be the rule specification should be changed to catch the error at the kfree call point.

Actions #1

Updated by Alexey Khoroshilov about 7 years ago

Vadim Mutilin wrote:

Or may be the rule specification should be changed to catch the error at the kfree call point.

I like this idea.

Actions

Also available in: Atom PDF