[#5775] RESOURCE_LABEL_SIZE in bfin_gpio.c is 16, but "Blackfin-GPIOlib" is longer (with tailing \0)

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5775] RESOURCE_LABEL_SIZE in bfin_gpio.c is 16, but "Blackfin-GPIOlib" is longer (with tailing \0)

Submitted By: Peter Meerwald

Open Date

2009-12-15 13:03:31     Close Date

2010-02-22 10:26:30

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

snaps     Release:

Category:

Kernel Functions     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

09r1-10

App binary format:

N/A     

Summary: RESOURCE_LABEL_SIZE in bfin_gpio.c is 16, but "Blackfin-GPIOlib" is longer (with tailing \0)

Details:

 

kernel prints

bfin-gpio: GPIO 24 is already reserved by Blackfin-GPIOli!

during boot; note that last character of Blackfin-GPIOlib is missing

 

this is because RESOURCE_LABEL_SIZE in bfin_gpio.c is 16 which is too small for the string Blackfin-GPIOlib when appending a null-character

 

I suggest to either increase RESOURCE_LABEL_SIZE or rename "Blackfin-GPIOlib" somehow

 

 

Follow-ups

 

--- Michael Hennerich                                        2009-12-16 03:49:10

Renamed -> "BFIN-GPIO"

Fixed on trunk and 2009R1 branch.

 

Thanks!

-Michael

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes