Fixed possibility to have more than 25 shares with generic driver

Change-Id: Ibca0c33518d61a4b4eb37c243ef103e70859bc0f
Closes-Bug: #1315266