Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11187 closed Patch - Bug Fix (fixed)

Fix the check for a failed call to mmap

Reported by: mythtv@… Owned by: Paul Harrison <pharrison@…>
Priority: minor Milestone: 0.27
Component: Plugin - MythZoneminder Version: 0.26-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

The attached patch uses the correct error return value from mmap(), it should be MAP_FAILED not NULL.

Also adds some debugging to make it clear why we failed to open the mmap file.

Attachments (1)

0001-mythzmserver-Add-a-proper-check-for-a-failed-call-to.patch (1.8 KB) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by anonymous

comment:1 Changed 11 years ago by Paul Harrison <pharrison@…>

Owner: set to Paul Harrison <pharrison@…>
Resolution: fixed
Status: newclosed

In d2127813712612699a490a50476166ce062f166e/mythtv:

mythzmserver: Add a proper check for a failed call to mmap()

Should be checking for MAP_FAILED not NULL. Also add some additional debugging
showing why we failed to open the mmap file. Fixes #11187.

(cherry picked from commit 52b277397431dd88a337e46a7d64fea89c8037c0)

Signed-off-by: Paul Harrison <pharrison@…>

comment:2 Changed 11 years ago by Raymond Wagner

Milestone: 0.27
Note: See TracTickets for help on using tickets.