[PATCH 0/5] cifs: Fix inconsistent handling of unicode string buffers

Suresh Jayaraman <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
This patchset fixes the opencoded, inconsistent allocation of memory
needed for a unicode string conversion by calculating the memory needed
exactly instead of using size assumptions. It consolidates some common
code that does allocates memory and conversion in a helper function and
makes use of it wherever appropriate. It also cleans up pointless length
checks in decode_unicode_ssetup.

I have incorporated all the review comments from the previous post and
have split the patches to make review easier.

Suresh Jayaraman (5)
 cifs: Introduce helpers for unicode buffer handing
 cifs: Make CIFSSessSetup and CIFSTcon use the helpers
 cifs: Make decode_unicode_ssetup use the helpers
 cifs: Make cifs_readdir use the helpers
 cifs: Fix buffer size in cifs_strncpy_to_host


Thanks,

-- 
Suresh Jayaraman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.